Skip to content

Commit 95e7ba2

Browse files
ci(templates): pin npm version for consistent builds
Add npm upgrade step to install npm@10.9.2 globally before installing skillsbase. This ensures consistent npm version across all CI environments. Co-Authored-By: Hagicode <noreply@hagicode.com> Signed-off-by: newbe36524 <newbe36524@qq.com>
1 parent e4e4751 commit 95e7ba2

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

templates/actions/skillsbase-sync/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ runs:
2626
shell: bash
2727
run: npm ci
2828

29+
- name: Upgrade npm
30+
shell: bash
31+
run: npm install --global npm@10.9.2
32+
2933
- name: Install skillsbase
3034
shell: bash
3135
run: npm install --global @hagicode/skillsbase

templates/workflows/skills-sync.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- name: Install dependencies
3333
run: npm ci
3434

35+
- name: Upgrade npm
36+
run: npm install --global npm@10.9.2
37+
3538
- name: Install skillsbase
3639
run: npm install --global @hagicode/skillsbase
3740

0 commit comments

Comments
 (0)