Skip to content

Commit b29c197

Browse files
committed
ci: pin bun and npm versions, update trusted publishing
- Pin bun to 1.3.5 across all workflows - Pin npm to 11.7.0 for OIDC trusted publishing support - Update GitHub Actions to latest SHA-pinned versions
1 parent eb68cf7 commit b29c197

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/ci-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Bun
2121
uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
2222
with:
23-
bun-version: 'latest'
23+
bun-version: '1.3.5'
2424

2525
- name: Install deps
2626
run: bun install

.github/workflows/ci-release.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,21 +90,23 @@ jobs:
9090
if: ${{ inputs.skip_publish != 'true' }}
9191
permissions:
9292
contents: read
93-
id-token: write # Required for npm provenance / trusted publishing
93+
id-token: write # Required for npm OIDC trusted publishing
9494

9595
steps:
9696
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
9797

9898
- name: Setup Bun
9999
uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
100100
with:
101-
bun-version: 'latest'
101+
bun-version: '1.3.5'
102102

103103
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
104104
with:
105105
node-version: 22.x
106106
registry-url: 'https://registry.npmjs.org'
107-
scope: '@matterlabs'
107+
108+
- name: Upgrade npm for OIDC support
109+
run: npm install -g npm@11.7.0
108110

109111
- run: bun install
110112

.github/workflows/ci-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Bun
2020
uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
2121
with:
22-
bun-version: 'latest'
22+
bun-version: '1.3.5'
2323

2424
- name: Install deps
2525
run: bun install
@@ -50,7 +50,7 @@ jobs:
5050
- name: Setup Bun
5151
uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
5252
with:
53-
bun-version: 'latest'
53+
bun-version: '1.3.5'
5454

5555
- name: Install deps
5656
run: bun install --frozen-lockfile

0 commit comments

Comments
 (0)