From b341945a1a9f3117a4b7a8a318434ac889c653e6 Mon Sep 17 00:00:00 2001 From: siujamo Date: Mon, 8 Jun 2026 09:41:38 +0800 Subject: [PATCH] fix: configure pnpm auth explicitly to avoid OIDC failure on Gitea --- .gitea/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 90d0f3b..3461113 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -17,11 +17,13 @@ jobs: uses: actions/setup-node@v4 with: node-version: "24" - registry-url: "https://registry.npmjs.org" - name: Setup pnpm run: corepack enable && corepack prepare pnpm@latest --activate + - name: Configure npm auth + run: pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} + - name: Install dependencies run: pnpm install --frozen-lockfile @@ -30,5 +32,3 @@ jobs: - name: Publish to npm run: pnpm publish --no-git-checks - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}