Skip to content

Commit 54c8666

Browse files
authored
use a fixed version for latest in node action (#5671)
1 parent 108c0b4 commit 54c8666

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/actions/node/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ runs:
1010
steps:
1111
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1212
with:
13-
node-version: ${{ inputs.version == 'eol' && '16' || inputs.version == 'oldest' && '18' || inputs.version == 'maintenance' && '20' || inputs.version == 'active' && '22' || inputs.version }}
13+
node-version: ${{ inputs.version == 'eol' && '16' || inputs.version == 'oldest' && '18' || inputs.version == 'maintenance' && '20' || inputs.version == 'active' && '22' || inputs.version == 'latest' && '23' || inputs.version == 'default' && '' || inputs.version }}
1414
check-latest: true
1515
registry-url: ${{ inputs.registry-url || 'https://registry.npmjs.org' }}

.github/workflows/release-proposal.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
token: ${{ steps.app-token.outputs.token }}
3232
- uses: ./.github/actions/node
3333
with:
34-
version: ''
34+
version: default
3535
- uses: ./.github/actions/install/branch-diff
3636
with:
3737
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-validate.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 0
2828
- uses: ./.github/actions/node
2929
with:
30-
version: ''
30+
version: default
3131
- uses: ./.github/actions/install/branch-diff
3232
with:
3333
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)