diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dfd57df..79d65d9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,5 +46,8 @@ jobs: - name: Publish to npm run: | + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc cd pkg - npm publish --access public --provenance \ No newline at end of file + npm publish --access public --provenance + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file