Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7892a9

Browse files
committed
ci: upgrade corepack
1 parent f7c9dc8 commit f7892a9

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/run-tests.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ jobs:
5959
cache: 'npm'
6060
cache-dependency-path: '**/package-lock.json'
6161
- uses: oven-sh/setup-bun@v1
62+
- name: upgrade corepack
63+
run: npm install -g corepack@latest
6264
- name: setup pnpm/yarn
6365
run: corepack enable
64-
shell: bash
6566
- name: Install Deno
6667
uses: denoland/setup-deno@v1
6768
with:
@@ -127,8 +128,19 @@ jobs:
127128
node-version: '18.x'
128129
cache: 'npm'
129130
cache-dependency-path: '**/package-lock.json'
131+
- name: Use npm global on windows
132+
if: runner.os == 'Windows'
133+
run: |
134+
echo "$(npm config get prefix)" >> "$GITHUB_PATH"
135+
shell: bash
130136
- name: setup pnpm/yarn
131-
run: corepack enable
137+
run: |
138+
corepack --version
139+
which corepack
140+
npm install -g corepack --force
141+
corepack --version
142+
which corepack
143+
npm list -g
132144
shell: bash
133145
- name: Install Deno
134146
uses: denoland/setup-deno@v1

tests/prepare.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const promises = fixtures.map((fixture) =>
7070
callback()
7171
},
7272
})
73+
7374
console.log(`[${fixture}] Running \`${cmd}\`...`)
7475
const output = execaCommand(cmd, {
7576
cwd,

0 commit comments

Comments
 (0)