File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -30,19 +30,17 @@ jobs:
3030 git commit -m "ci: bump version [skip ci]"
3131
3232 - name : Configure npm for publishing
33- run : echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/ .npmrc
33+ run : echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
3434 env :
3535 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
3636 - name : Who am I
37- run : npm whoami
37+ run : npm whoami || echo "whoami failed"
3838 env :
3939 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
40-
41- - name : Show npmrc
42- run : cat ~/.npmrc
43-
40+ - name : Check if .npmrc exists
41+ run : test -f .npmrc && echo ".npmrc exists"
4442 - name : Publish to npm
45- run : npm publish --access public || true
43+ run : npm publish --access public || true
4644 env :
4745 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
4846
You can’t perform that action at this time.
0 commit comments