Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
330089bd
Commit
330089bd
authored
Dec 15, 2025
by
Sebastian "Sebbie" Silbermann
Committed by
JJ Kasper
Jan 27, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci] Ensure runners use configured Node.js version (#87183)
# Conflicts: # .github/workflows/build_reusable.yml
parent
60a2aa97
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
build_reusable.yml
.github/workflows/build_reusable.yml
+22
-3
No files found.
.github/workflows/build_reusable.yml
View file @
330089bd
...
@@ -143,9 +143,28 @@ jobs:
...
@@ -143,9 +143,28 @@ jobs:
script
:
|
script
:
|
core.setOutput('input_step_key', '${{ inputs.stepName }}'.toLowerCase().replaceAll(/[/.]/g, '-').trim('-'));
core.setOutput('input_step_key', '${{ inputs.stepName }}'.toLowerCase().replaceAll(/[/.]/g, '-').trim('-'));
-
run
:
fnm use --install-if-missing ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }}
-
name
:
Use Node.js ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }} for default shell
-
run
:
fnm default ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }}
run
:
|
-
run
:
node -v
node --version || true
which node || true
# TODO: May be sufficient to just set `$FNM_MULTISHELL_PATH/bin` from `fnm env --json` into GITHUB_PATH
fnm_env=$(fnm env)
# Debug what we're about to eval
echo "$fnm_env"
eval "$fnm_env"
fnm use --install-if-missing ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }}
fnm default ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }}
node --version
which node
NODE_SHELL_PATH=$(dirname "$(which node)")
echo "Adding '$NODE_SHELL_PATH' to GITHUB_PATH"
echo "$NODE_SHELL_PATH" >> "$GITHUB_PATH"
# Debug used Node.js version in a separate step to ensure
# the Node.js version is set for the entire job
-
name
:
Verify Node.js version
run
:
|
which node
node --version
-
name
:
Prepare corepack
-
name
:
Prepare corepack
if
:
${{ contains(fromJson(inputs.runs_on_labels), 'ubuntu-latest') }}
if
:
${{ contains(fromJson(inputs.runs_on_labels), 'ubuntu-latest') }}
run
:
|
run
:
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment