From 74f1547fb53607120d7763530d8b9a5c9848fc0e Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 23 Nov 2023 22:15:12 +0100 Subject: [PATCH] Move login to CI step --- .github/workflows/ci.yml | 3 ++- .npmrc | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 .npmrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1ddabb..f42af24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,8 @@ jobs: key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- - + - name: Set deployment token + run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" - name: Publish run: | pnpm install --no-frozen-lockfile diff --git a/.npmrc b/.npmrc deleted file mode 100644 index ae64359..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -//registry.npmjs.org/:_authToken=${NPM_TOKEN}