Skip to content

Commit aa151d9

Browse files
Use the latest NPM version and fix permission in release workflow
1 parent 19a6a9d commit aa151d9

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/actions/setup-cli-deps/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ runs:
2424
registry-url: 'https://registry.npmjs.org'
2525
cache: 'pnpm'
2626
cache-dependency-path: 'pnpm-lock.yaml'
27+
- name: Install latest npm
28+
run: npm install -g npm@latest
29+
shell: bash
2730
- name: Install dependencies
2831
run: pnpm install --frozen-lockfile
2932
shell: bash

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,10 @@ jobs:
5252
uses: actions/checkout@v4
5353
with:
5454
fetch-depth: 0
55-
- name: Install pnpm
56-
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # pin@v4.0.0
55+
- name: Setup deps
56+
uses: ./.github/actions/setup-cli-deps
5757
with:
58-
version: ${{ env.PNPM_VERSION }}
59-
run_install: false
58+
node-version: 24.1.0
6059
- name: Force snapshot changeset
6160
run: "mv .changeset/force-snapshot-build.md.ignore .changeset/force-snapshot-build.md"
6261
- name: Create snapshot version
@@ -87,7 +86,7 @@ jobs:
8786
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag == '') }}
8887
runs-on: ubuntu-latest
8988
permissions:
90-
contents: read
89+
contents: write
9190
pull-requests: write
9291
id-token: write
9392
steps:

0 commit comments

Comments
 (0)