Skip to content

Commit

Permalink
yarn@1
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Aug 4, 2023
1 parent 5950a92 commit de70eab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
- run: rustc --version
if: ${{ inputs.skipNativeBuild != 'yes' || inputs.needsNextest == 'yes' || inputs.needsRust == 'yes' }}

- run: corepack prepare --activate yarn@latest && npm i -g "turbo@${TURBO_VERSION}" "@napi-rs/cli@${NAPI_CLI_VERSION}"
- run: corepack prepare --activate yarn@1 && npm i -g "turbo@${TURBO_VERSION}" "@napi-rs/cli@${NAPI_CLI_VERSION}"

# clean up any previous artifacts to avoid hitting disk space limits
- run: git clean -xdf && rm -rf /tmp/next-repo-*; rm -rf /tmp/next-install-* /tmp/yarn-* /tmp/ncc-cache target
Expand Down
6 changes: 3 additions & 3 deletions test/integration/create-next-app/package-manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ it('should use Yarn as the package manager on supplying --use-yarn with example'
} catch (_) {
// install yarn if not available
try {
await execa('corepack', ['prepare', '--activate', 'yarn@latest'])
await execa('corepack', ['prepare', '--activate', 'yarn@1'])
} catch (_) {
await execa('npm', ['i', '-g', 'yarn'])
}
Expand Down Expand Up @@ -374,7 +374,7 @@ it('should infer yarn as the package manager', async () => {
} catch (_) {
// install yarn if not available
try {
await execa('corepack', ['prepare', '--activate', 'yarn@latest'])
await execa('corepack', ['prepare', '--activate', 'yarn@1'])
} catch (_) {
await execa('npm', ['i', '-g', 'yarn'])
}
Expand Down Expand Up @@ -418,7 +418,7 @@ it('should infer yarn as the package manager with example', async () => {
} catch (_) {
// install yarn if not available
try {
await execa('corepack', ['prepare', '--activate', 'yarn@latest'])
await execa('corepack', ['prepare', '--activate', 'yarn@1'])
} catch (_) {
await execa('npm', ['i', '-g', 'yarn'])
}
Expand Down

0 comments on commit de70eab

Please sign in to comment.