Skip to content

Commit 35a631b

Browse files
CopilotB4nan
andauthored
test: Update npm to latest in test_node_templates workflow (#611)
Ensures the `test_node_templates.yaml` workflow uses the latest npm version instead of the bundled version that ships with each Node.js release. ## Changes - Added `npm install -g npm@latest` step after Node.js setup and before dependency installation - Step executes across all matrix combinations (Node 20, 22, 24 on Ubuntu and Windows) This updates npm from 10.8.2 (bundled) to 11.7.0+ (latest) for consistent testing with current npm features and fixes. <!-- START COPILOT CODING AGENT SUFFIX --> <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > update npm to latest in this flow: https://github.com/apify/actor-templates/blob/master/.github/workflows/test_node_templates.yaml </details> <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/apify/actor-templates/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. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: B4nan <[email protected]>
1 parent 3183df6 commit 35a631b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/test_node_templates.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
node-version: ${{ matrix.node-version }}
2525
cache: 'npm'
2626

27+
- name: Update npm to latest
28+
run: npm install -g npm@latest
29+
2730
- name: Cache node_modules
2831
uses: actions/cache@v4
2932
with:

0 commit comments

Comments
 (0)