Skip to content

Commit 62f77e2

Browse files
committed
meta: use the latest shared setup-environment action
Go back to `nodejs/web-team/actions/setup-environment` in the publish job instead of inlining its steps, and bump it everywhere to the current web-team `main`, which already checks out with `persist-credentials: false` and pins newer checkout, setup-node and pnpm/action-setup releases. Assisted-by: Claude Opus 5.5 <[email protected]>
1 parent a1648ee commit 62f77e2

3 files changed

Lines changed: 9 additions & 29 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Setup environment
22-
uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
22+
uses: nodejs/web-team/actions/setup-environment@9340c90fe703e7448529fdd6ea07e1fb48c042c7
2323
with:
2424
use-version-file: true
2525
pnpm: true
@@ -36,7 +36,7 @@ jobs:
3636

3737
steps:
3838
- name: Setup environment
39-
uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
39+
uses: nodejs/web-team/actions/setup-environment@9340c90fe703e7448529fdd6ea07e1fb48c042c7
4040
with:
4141
use-version-file: true
4242
pnpm: true
@@ -63,7 +63,7 @@ jobs:
6363

6464
steps:
6565
- name: Setup environment
66-
uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
66+
uses: nodejs/web-team/actions/setup-environment@9340c90fe703e7448529fdd6ea07e1fb48c042c7
6767
with:
6868
use-version-file: true
6969
pnpm: true

‎.github/workflows/generate.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
compare: file-size
116116
steps:
117117
- name: Setup environment
118-
uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
118+
uses: nodejs/web-team/actions/setup-environment@9340c90fe703e7448529fdd6ea07e1fb48c042c7
119119
with:
120120
use-version-file: true
121121
pnpm: true

‎.github/workflows/publish.yml‎

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,14 @@ jobs:
3333
pull-requests: write # open/update the "Version Packages" PR
3434
# For npm OIDC (https://docs.npmjs.com/trusted-publishers)
3535
id-token: write
36-
# These steps stay inline instead of using `nodejs/web-team/actions/setup-environment`,
37-
# which persists the checkout token and restores the pnpm store from the Actions cache.
38-
# Neither belongs in a job that holds `id-token: write`. `changesets/action` pushes
39-
# commits and tags through the GitHub API, so it doesn't need the checkout token.
4036
steps:
41-
- name: Harden Runner
42-
uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1
37+
- name: Setup environment
38+
uses: nodejs/web-team/actions/setup-environment@9340c90fe703e7448529fdd6ea07e1fb48c042c7
4339
with:
44-
egress-policy: audit
45-
46-
- name: Git Checkout
47-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
48-
with:
49-
fetch-depth: 0
50-
persist-credentials: false
51-
52-
- name: Setup pnpm
53-
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
54-
55-
- name: Setup Node.js
56-
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
57-
with:
58-
node-version-file: '.nvmrc'
40+
use-version-file: true
41+
pnpm: true
5942
registry-url: 'https://registry.npmjs.org'
60-
package-manager-cache: false
61-
62-
- name: Install dependencies
63-
run: pnpm install --frozen-lockfile
43+
fetch-depth: 0
6444

6545
- name: Create Release Pull Request or Publish
6646
id: changesets

0 commit comments

Comments
 (0)