fix: configure pnpm auth explicitly to avoid OIDC failure on Gitea
Publish to npm / publish (push) Failing after 26s

This commit is contained in:
2026-06-08 09:41:38 +08:00
parent f677b995e2
commit b341945a1a
+3 -3
View File
@@ -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 }}