Skip to content

Commit 007396c

Browse files
Update workflows to use Node.js 22.14.0 (#1116)
## Description ### Why GitHub Actions workflow templates were using default runner Node.js versions, which may vary across runner images and become outdated. Pinning to Node.js 22.14.0 ensures consistent build environments across all CI runs. ### Changes - Added `actions/setup-node@v4` to `template-upgradesample.yml` and `template-buildsample.yml` - Node.js 22.14.0 is now configured immediately after checkout in both workflow templates - Affects all workflows that call these templates: `ci.yml`, `pr.yml`, and `ci-upgrade.yml` ## Screenshots N/A - Workflow configuration changes only <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Update workflows to use node version >= 22.14.0</issue_title> > <issue_description>Make changes in this file alone template-upgradesample.yml, template-buildsample.yml</issue_description> > > <agent_instructions>Create a PR so that all workflow will use node version 22.14.0 for wherever it is necessary.</agent_instructions> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes #1115 <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/microsoft/react-native-windows-samples/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/1116) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: vineethkuttan <66076509+vineethkuttan@users.noreply.github.com>
1 parent cd7984c commit 007396c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/template-buildsample.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ jobs:
5454
steps:
5555
- uses: actions/checkout@v3
5656

57+
- name: Setup Node.js
58+
uses: actions/setup-node@v4
59+
with:
60+
node-version: '22.14.0'
61+
5762
- name: Gather environment info
5863
run: npx envinfo
5964

.github/workflows/template-upgradesample.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ jobs:
6565
steps:
6666
- uses: actions/checkout@v3
6767

68+
- name: Setup Node.js
69+
uses: actions/setup-node@v4
70+
with:
71+
node-version: '22.14.0'
72+
6873
- name: Gather environment info
6974
run: npx envinfo
7075

0 commit comments

Comments
 (0)