Skip to content

Commit

Permalink
ci(npm): use NPM_AUTH_TOKEN istead NODE_AUTH_TOKEN and create .npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
thecreazy committed Jan 23, 2021
1 parent b462a74 commit 22f35f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 13.7
always-auth: true
- run: yarn install
- run: yarn test
- run: yarn build
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- run: cat ~/.npmrc
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 22f35f0

Please sign in to comment.