File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 60
60
cache-dependency-path : ' **/package-lock.json'
61
61
- uses : oven-sh/setup-bun@v1
62
62
- name : setup pnpm/yarn
63
- run : corepack enable
63
+ run : |
64
+ npm install -g corepack@latest
65
+ corepack enable
64
66
shell : bash
65
67
- name : Install Deno
66
68
uses : denoland/setup-deno@v1
@@ -127,8 +129,17 @@ jobs:
127
129
node-version : ' 18.x'
128
130
cache : ' npm'
129
131
cache-dependency-path : ' **/package-lock.json'
132
+ - name : Prefer npm global on windows
133
+ if : runner.os == 'Windows'
134
+ # On Windows by default PATH prefers corepack bundled with Node.js
135
+ # This prepends npm global to PATH to ensure that npm installed global corepack is used instead
136
+ run : |
137
+ echo "$(npm config get prefix)" >> "$GITHUB_PATH"
138
+ shell : bash
130
139
- name : setup pnpm/yarn
131
- run : corepack enable
140
+ run : |
141
+ npm install -g corepack --force
142
+ corepack enable
132
143
shell : bash
133
144
- name : Install Deno
134
145
uses : denoland/setup-deno@v1
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ const promises = fixtures.map((fixture) =>
70
70
callback ( )
71
71
} ,
72
72
} )
73
+
73
74
console . log ( `[${ fixture } ] Running \`${ cmd } \`...` )
74
75
const output = execaCommand ( cmd , {
75
76
cwd,
You can’t perform that action at this time.
0 commit comments