Skip to content

Commit 5a73804

Browse files
authored
ci: Setup workspace node version in release actions (#15353)
1 parent 0b706be commit 5a73804

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/auto-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141
version=${version/'prepare-release/'/''}
4242
echo "version=$version" >> $GITHUB_OUTPUT
4343
44+
- name: Set up Node
45+
uses: actions/setup-node@v4
46+
with:
47+
node-version-file: 'package.json'
48+
4449
- name: Prepare release
4550
uses: getsentry/action-prepare-release@v1
4651
if: github.event.pull_request.merged == true && steps.version-regex.outputs.match != '' && steps.get_version.outputs.version != ''

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
with:
2828
token: ${{ steps.token.outputs.token }}
2929
fetch-depth: 0
30+
- name: Set up Node
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version-file: 'package.json'
3034
- name: Prepare release
3135
uses: getsentry/action-prepare-release@v1
3236
env:

0 commit comments

Comments
 (0)