From 57daa35cf5e3338658a6ebfe41b72bb79ff7626a Mon Sep 17 00:00:00 2001 From: Sam Gaus Date: Mon, 23 Oct 2023 21:46:00 +0100 Subject: [PATCH] Do auth token yarn2+ wise --- .github/workflows/npm.yml | 4 ++-- .yarnrc.yml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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