chore: set npm token to .npmrc (#1266)

This commit is contained in:
Sasha 2023-03-24 00:38:45 +01:00 committed by GitHub
parent 9b6448bf63
commit 48f77f94f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,7 +231,9 @@ jobs:
- run: npm run build
if: ${{ steps.release.outputs.releases_created }}
- name: Authenticate with registry
if: ${{ steps.release.outputs.releases_created }}
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./.npmrc
- run: npm publish --workspaces --tag latest --access public
if: ${{ steps.release.outputs.releases_created }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}