File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 5353 id-token : write
5454 outputs :
5555 published-version : ${{ needs.check-version.outputs.current-version }}
56+ env :
57+ NPM_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
5658 steps :
5759 - uses : actions/checkout@v4
5860 # Setup .npmrc file to publish to npm
@@ -76,12 +78,10 @@ jobs:
7678 - name : Publish to npm
7779 run : |
7880 if [ "${{ needs.check-version.outputs.is-prerelease }}" == "true" ]; then
79- npm publish --provenance --access public --tag ${{ needs.check-version.outputs.npm-tag }}
81+ yarn npm publish --provenance --access public --tag ${{ needs.check-version.outputs.npm-tag }}
8082 else
81- npm publish --provenance --access public
83+ yarn npm publish --provenance --access public
8284 fi
83- env :
84- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
8585
8686 create-release :
8787 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 66 build :
77 runs-on : ubuntu-latest
88
9+ env :
10+ NPM_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
11+
912 steps :
1013 - uses : actions/checkout@v3
1114
Original file line number Diff line number Diff line change 11nodeLinker : node-modules
2+ npmRegistryServer : ' https://registry.npmjs.org'
3+ npmAuthToken : ' ${NPM_AUTH_TOKEN}'
You can’t perform that action at this time.
0 commit comments