diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 7cf99c5..2777b00 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -14,6 +14,8 @@ jobs: with: node-version: "18.x" registry-url: "https://registry.npmjs.org" + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install run: yarn @@ -28,5 +30,3 @@ jobs: - name: Publish if necessary if: ${{ steps.check.outputs.exists == '0' }} run: yarn npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}