From 5e64df3e424d1798ccd621b11fe10fdef2a75623 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Tue, 30 Sep 2025 10:57:10 +0900 Subject: [PATCH] ci: use trusted publisher for npm publish [skip ci] --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 892824ec..17768659 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,7 +23,8 @@ jobs: with: node-version: 'lts/*' registry-url: 'https://registry.npmjs.org' + # Ensure npm 11.5.1 or later is installed + - name: Update npm + run: npm install -g npm@latest - run: pnpm install - run: pnpm publish --no-git-checks - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} -- 2.47.3