We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f66ae0 commit d59d1d6Copy full SHA for d59d1d6
1 file changed
.github/workflows/Publish_to_NPM.yml
@@ -12,9 +12,10 @@ jobs:
12
- uses: actions/checkout@v2
13
14
- name: Install Node.js
15
- uses: actions/setup-node@v1
+ uses: actions/setup-node@v4
16
with:
17
- node-version: 20
+ node-version: '20.x'
18
+ registry-url: 'https://registry.npmjs.org'
19
20
- run: git config --global user.name "NPM release bot"
21
- run: git config --global user.email "<>"
@@ -29,13 +30,13 @@ jobs:
29
30
31
- name: Test publishing to NPM
32
if: "github.event.release.prerelease"
- run: npm publish --dry-run
33
+ run: npm publish --dry-run --access public
34
env:
35
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36
37
- name: Publish to NPM
38
if: "!github.event.release.prerelease"
- run: npm publish
39
+ run: npm publish --access public
40
41
42
0 commit comments