From 2e6f170bf879f862b895900a93de14b335eafcbd Mon Sep 17 00:00:00 2001 From: limx Date: Mon, 19 Oct 2026 15:44:57 +0800 Subject: [PATCH 1/2] ci: update release step --- .github/workflows/release-please.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index da7186d..3f2fdfb 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -30,14 +30,14 @@ jobs: - uses: actions/setup-node@v7 with: - node-version: lts/* + node-version: 26 + cache: pnpm + registry-url: https://registry.npmjs.org - - uses: pnpm/action-setup@v4 - with: - run_install: true + - uses: pnpm/action-setup@v7 - - run: pnpm run build + - run: pnpm install --frozen-lockfile - - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} + - run: pnpm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 240b32628cfd3a2db30260db9f06d26c6c5a8828 Mon Sep 17 00:00:00 2001 From: limx Date: Mon, 19 Oct 2026 15:59:33 +0800 Subject: [PATCH 2/2] chore: update permissions https://docs.npmjs.com/generating-provenance-statements#example-github-actions-workflow --- .github/workflows/release-please.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 3f2fdfb..2603ebc 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -7,6 +7,7 @@ on: workflow_dispatch: permissions: + id-token: write contents: write pull-requests: write @@ -31,7 +32,6 @@ jobs: - uses: actions/setup-node@v7 with: node-version: 26 - cache: pnpm registry-url: https://registry.npmjs.org - uses: pnpm/action-setup@v7