From a58e48b34f43719d65074b5475b654e6774d15fc Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 26 May 2026 17:25:39 +0800 Subject: [PATCH 1/3] chore: switch to staged publishing --- .github/workflows/release.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08b22a68..43e37f4e 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,24 +25,13 @@ jobs: with: node-version: 24.15.0 - # Update npm to the latest version to enable OIDC - # Use corepack to install pnpm - - name: Setup Package Managers + - name: Setup Pnpm run: | - npm install -g npm@latest - npm --version 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 From 5292b2ec2e09b4c28f8259746edbc73286d1f9fc Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 26 May 2026 17:26:18 +0800 Subject: [PATCH 2/3] fi --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bcdacd49..db094c9b 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "supertest": "7.2.2", "typescript": "6.0.3" }, - "packageManager": "pnpm@11.2.2", + "packageManager": "pnpm@11.3.0", "engines": { "node": "^20.19.0 || >=22.12.0" } From 3c78484b511ed96019aee56ec13af9ac1a927441 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 26 May 2026 17:28:25 +0800 Subject: [PATCH 3/3] fix --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index db094c9b..746bc708 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "connect-next", "version": "4.0.1", - "packageManager": "pnpm@11.1.2", "description": "High performance middleware framework", "repository": "rstackjs/connect-next", "license": "MIT",