From cac6ec64420e1cfac351cd0f78d81c4cd2de7a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Kuli=C5=84ski?= <25184202+rkulinski@users.noreply.github.com> Date: Thu, 23 Nov 2023 22:24:41 +0100 Subject: [PATCH] Move set token to publish (#73) --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f42af24..65a2b80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,14 +35,13 @@ 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 git config --global user.name 'Tanner Linsley' git config --global user.email 'tannerlinsley@users.noreply.github.com' - pnpm cipublish + npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" + pnpm run cipublish env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }}