From 4319aa9297e55ba066d7111548db11f02849b600 Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 27 May 2026 13:09:02 +0800 Subject: [PATCH 1/2] chore: switch to npm staged publishing --- .github/workflows/release.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 05fe2d7..b620f5d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,17 +1,16 @@ -# This action will publish the package to npm and create a GitHub release. name: Release on: # Run `npm run bump` to bump the version and create a git tag. push: tags: - - "v*" + - 'v*' workflow_dispatch: permissions: - contents: write - id-token: write + contents: read + id-token: write # Required for OIDC jobs: publish: @@ -26,20 +25,13 @@ jobs: with: node-version: 24.15.0 - - name: Setup Package Managers + - name: Setup Pnpm run: | npm install -g corepack@latest --force corepack enable - name: Install Dependencies - run: pnpm install + run: pnpm i - name: Publish - uses: JS-DevTools/npm-publish@0fd2f4369c5d6bcfcde6091a7c527d810b9b5c3f # v4 - with: - token: empty - - - name: Create GitHub Release - uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1 - with: - generateReleaseNotes: "true" + run: pnpm stage publish --no-git-checks From f763171fe90ceddb65bb84c37ab5b524c583d19e Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 28 May 2026 18:13:30 +0800 Subject: [PATCH 2/2] chore: format release workflow --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b620f5d..0d2d700 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: # Run `npm run bump` to bump the version and create a git tag. push: tags: - - 'v*' + - "v*" workflow_dispatch: