fix: setup npmrc before publishing
All checks were successful
Publish to NPM / Build and Publish to NPM (push) Successful in 11s
All checks were successful
Publish to NPM / Build and Publish to NPM (push) Successful in 11s
This commit is contained in:
5
.github/workflows/release.yaml
vendored
5
.github/workflows/release.yaml
vendored
@@ -47,10 +47,11 @@ jobs:
|
||||
- name: Build NPM Package
|
||||
run: deno task build:npm
|
||||
|
||||
- name: Setup .npmrc
|
||||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
||||
|
||||
# 6. Publish to NPM
|
||||
- name: Publish to NPM
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: |
|
||||
cd ${{ env.DIST_FOLDER }}
|
||||
npm publish --access public
|
||||
|
||||
Reference in New Issue
Block a user