Skip to content

Commit d59d1d6

Browse files
committed
Update release workflow
1 parent 5f66ae0 commit d59d1d6

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/Publish_to_NPM.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ jobs:
1212
- uses: actions/checkout@v2
1313

1414
- name: Install Node.js
15-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@v4
1616
with:
17-
node-version: 20
17+
node-version: '20.x'
18+
registry-url: 'https://registry.npmjs.org'
1819

1920
- run: git config --global user.name "NPM release bot"
2021
- run: git config --global user.email "<>"
@@ -29,13 +30,13 @@ jobs:
2930

3031
- name: Test publishing to NPM
3132
if: "github.event.release.prerelease"
32-
run: npm publish --dry-run
33+
run: npm publish --dry-run --access public
3334
env:
3435
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3536

3637
- name: Publish to NPM
3738
if: "!github.event.release.prerelease"
38-
run: npm publish
39+
run: npm publish --access public
3940
env:
4041
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4142

0 commit comments

Comments
 (0)