diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index a28eb4d..1ed8d7d 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -24,6 +24,8 @@ jobs: with: node-version: '20' registry-url: 'https://registry.npmjs.org' + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install dependencies run: yarn @@ -37,3 +39,5 @@ jobs: - name: Publish if version has been updated run: npm publish --access public if: contains(github.event.head_commit.message, 'Release ') + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}