From 8a5970422025e764a74828a9c1855e437b742a4a Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 3 Aug 2025 21:51:49 +0800 Subject: [PATCH] chore: enable OIDC publishing --- .github/workflows/release.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4866a66..fdd7feb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,13 +21,19 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install Pnpm - run: npm i -g corepack@latest --force && corepack enable + # 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: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 22.14 + node-version: 22 cache: "pnpm" - name: Install Dependencies @@ -36,7 +42,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