Skip to content

Commit cbfa251

Browse files
author
Sakchai.Homhual
committed
chore: move npm update step to setup action for consistency
1 parent 2a5689a commit cbfa251

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/actions/setup/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ runs:
1010
node-version: 20.x
1111
cache: 'npm'
1212

13+
- name: Update npm to 11 # Trusted Publishing requires npm >= 11.5.1
14+
run: npm install -g npm@11
15+
shell: bash
16+
1317
- name: Setup caching dependencies
1418
uses: actions/cache@v4
1519
id: cache-node_modules

.github/workflows/main_branch_check.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ jobs:
2121
uses: ./.github/actions/setup
2222
id: setup
2323

24-
- name: Update npm to latest version
25-
run: npm install -g npm@11
26-
2724
- name: Install Dependencies
2825
run: npm ci --audit=false --fund=false
2926

0 commit comments

Comments
 (0)