From 18873c36f751597be07420d80e0195a0b15a94a0 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 3 Aug 2025 21:49:02 +0800 Subject: [PATCH 1/2] chore: enable OIDC publishing (#28) --- .github/workflows/release.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5510986..e9af016 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,18 +16,24 @@ permissions: jobs: publish: runs-on: ubuntu-latest + environment: npm steps: - name: Checkout uses: actions/checkout@v4 - - name: Install Pnpm - run: npm i -g corepack@latest --force && corepack enable - - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: 22 - cache: "pnpm" + + # Update npm to the latest version to enable OIDC + # Use corepack to install pnpm + - name: Setup Package Managers + run: | + npm install -g npm@latest + npm --version + npm install -g corepack@latest --force + corepack enable - name: Install Dependencies run: pnpm install @@ -35,7 +41,7 @@ jobs: - name: Publish uses: JS-DevTools/npm-publish@v3 with: - token: ${{ secrets.RSBUILD_PLUGIN_NPM_TOKEN }} + token: empty - name: Create GitHub Release uses: ncipollo/release-action@v1 From 546f85538a4f7f1256f013a6ba22155480f4ec69 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 3 Aug 2025 21:49:35 +0800 Subject: [PATCH 2/2] chore: release v1.2.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b36c0cd..3e526e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rsbuild/plugin-basic-ssl", - "version": "1.2.0", + "version": "1.2.1", "repository": "https://github.com/rspack-contrib/rsbuild-plugin-basic-ssl", "license": "MIT", "type": "module",