Skip to content

Commit e114875

Browse files
Merge pull request #127 from embroider-build/nvp/tweak-release-plan-to-use-our-setup
Tweak release-plan to use our custom setup action
2 parents 0833ed3 + 02a05a3 commit e114875

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/actions/setup/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ runs:
3030

3131
- uses: actions/setup-node@v4
3232
with:
33-
node-version: 18
33+
node-version: 22
3434
cache: "pnpm"
35+
registry-url: "https://registry.npmjs.org"
36+
37+
- name: "Upgrade npm"
38+
shell: "bash"
39+
run: npm install -g npm@latest # ensure that the globally installed npm is new enough to support OIDC
3540

3641
- name: Install node dependencies
3742
shell: "bash"

.github/workflows/publish.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- main
1111
- master
1212
paths:
13-
- '.release-plan.json'
13+
- ".release-plan.json"
1414

1515
concurrency:
1616
group: publish-${{ github.head_ref || github.ref }}
@@ -27,14 +27,7 @@ jobs:
2727

2828
steps:
2929
- uses: actions/checkout@v6
30-
- uses: pnpm/action-setup@v4
31-
- uses: actions/setup-node@v6
32-
with:
33-
node-version: 22
34-
registry-url: 'https://registry.npmjs.org'
35-
cache: pnpm
36-
- run: npm install -g npm@latest # ensure that the globally installed npm is new enough to support OIDC
37-
- run: pnpm install --frozen-lockfile
30+
- uses: ./.github/actions/setup
3831
- name: Publish to NPM
3932
run: NPM_CONFIG_PROVENANCE=true pnpm release-plan publish
4033
env:

0 commit comments

Comments
 (0)