diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 961c220..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: @@ -21,30 +20,18 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - name: Setup pnpm - uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6 - - name: Setup Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: node-version: 24.15.0 - # Update npm to the latest version to enable OIDC - # Use corepack to install pnpm - - name: Update npm CLI + - 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 --no-git-checks diff --git a/package.json b/package.json index 596e93e..33761a1 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "engines": { "node": "^20.19.0 || >=22.12.0" }, - "packageManager": "pnpm@11.2.2", + "packageManager": "pnpm@11.3.0", "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/"