fix: setup npmrc before publishing
All checks were successful
Publish to NPM / Build and Publish to NPM (push) Successful in 11s

This commit is contained in:
Raul Lugo
2024-12-26 18:21:44 +01:00
parent 9a0fe511a6
commit c9778f7a9c

View File

@@ -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