From 5999235e413b4baba20f1e6c30c5d7d259cad1ee Mon Sep 17 00:00:00 2001 From: siujamo Date: Mon, 8 Jun 2026 09:46:29 +0800 Subject: [PATCH] fix: switch to npm publish to avoid pnpm OIDC auth issues --- .gitea/workflows/publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 3461113..afb8ee0 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -17,13 +17,11 @@ 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 @@ -31,4 +29,6 @@ jobs: run: pnpm run build - name: Publish to npm - run: pnpm publish --no-git-checks + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}