From c4eae33451c14d5366a029611ab348d75e13a3c9 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Wed, 22 Jan 2025 10:52:04 -0600 Subject: [PATCH] login to npn first --- .github/workflows/publish-next.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-next.yml b/.github/workflows/publish-next.yml index a30702e..81b0d33 100644 --- a/.github/workflows/publish-next.yml +++ b/.github/workflows/publish-next.yml @@ -28,7 +28,10 @@ jobs: run: pnpm install - name: Publish next version - run: pnpm changeset version --snapshot next && pnpm changeset publish --tag next + run: | + pnpm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN && \ + pnpm whoami && \ + pnpm changeset version --snapshot next && \ + pnpm changeset publish --tag next env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}