Skip to content

Commit f03f068

Browse files
committed
Try corepack
1 parent 4f6dfdd commit f03f068

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ jobs:
9191
cache: yarn
9292
node-version-file: .nvmrc
9393

94+
- run: corepack enable
95+
9496
- name: Find and export npm path
9597
run: |
96-
NPM_PATH=$(which npm)
97-
echo "NPM_PATH=$NPM_PATH" >> $GITHUB_ENV
98-
echo "Found npm at: $NPM_PATH"
99-
npm --version
98+
which npm || echo "npm not found"
99+
npm --version || echo "npm version check failed"
100100
101101
- name: Install npm packages
102102
run: yarn install

0 commit comments

Comments
 (0)