diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 2777b00..7cf99c5 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -14,8 +14,6 @@ jobs: with: node-version: "18.x" registry-url: "https://registry.npmjs.org" - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install run: yarn @@ -30,3 +28,5 @@ jobs: - name: Publish if necessary if: ${{ steps.check.outputs.exists == '0' }} run: yarn npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.yarnrc.yml b/.yarnrc.yml index 2ae7ea9..a265292 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,3 +1,5 @@ nodeLinker: node-modules yarnPath: .yarn/releases/yarn-4.0.0.cjs + +npmAuthToken: ${NODE_AUTH_TOKEN} \ No newline at end of file