diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6147f62..b620f5d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,3 @@ -# This action will publish the package to npm and create a GitHub release. name: Release on: @@ -10,8 +9,8 @@ on: workflow_dispatch: permissions: - contents: write - id-token: write + contents: read + id-token: write # Required for OIDC jobs: publish: @@ -25,24 +24,14 @@ jobs: uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: node-version: 24.15.0 - package-manager-cache: false - # 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 - - - name: Build - run: pnpm run build + run: pnpm i - name: Publish - uses: JS-DevTools/npm-publish@0fd2f4369c5d6bcfcde6091a7c527d810b9b5c3f # v4 - with: - token: empty + run: pnpm stage publish --no-git-checks diff --git a/package.json b/package.json index b8c9100..1c648a4 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "optional": true } }, - "packageManager": "pnpm@11.2.2", + "packageManager": "pnpm@11.3.0", "engines": { "node": "^20.19.0 || >=22.12.0" },