File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2020 git config user.email "github-actions@github.com"
2121 - name : Check whether it's the latest commit
2222 run : if [[ $(git ls-remote origin -h ${{ github.ref }} | cut -f1) != ${{ github.sha }} ]]; then exit 1; fi
23- - name : Setup Node.js
23+ - name : Setup Node
2424 uses : actions/setup-node@v4.0.2
25- with :
25+ env :
26+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
27+ with :
2628 node-version : 20
2729 registry-url : https://registry.npmjs.org
2830 - name : Install build dependencies
4446 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4547 GITHUB_REPOSITORY : ${{ github.repository }}
4648 GITHUB_REF : ${{ github.ref }}
47- - name : Setup NPM registry
48- run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
4949 - name : Release to NPM
50- run : npm publish --access public
50+ run : npm publish --access public
You can’t perform that action at this time.
0 commit comments