-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(check-update): fix pin pnpm to v8 (#4858)
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,18 @@ set -eux | |
NEW_VERSION=$(npm show prisma@$1 version) | ||
echo "$NEW_VERSION" > .github/prisma-version.txt | ||
|
||
# Pin to v8 as latest (v9) needs Node.js v18.12 minimum | ||
# see https://r.pnpm.io/comp | ||
# corepack install --global pnpm@8 | ||
# Legacy command | ||
corepack prepare [email protected] --activate | ||
corepack enable # auto install correct yarn versions automatically | ||
# Pin to v8 as latest (v9) needs Node.js v18.12 minimum | ||
# see https://r.pnpm.io/comp | ||
corepack install --global pnpm@8 | ||
|
||
pnpm -v | ||
|
||
# first update all the versions in all the projects for perf gains | ||
pnpm -rc --parallel exec "$(pwd)/scripts/update-version.sh $NEW_VERSION" | ||
# then update all the lockfiles by running the package managers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
#! /bin/sh | ||
|
||
# Pin to v8 as latest (v9) needs Node.js v18.12 minimum | ||
# see https://r.pnpm.io/comp | ||
# corepack install --global pnpm@8 | ||
# Legacy command | ||
corepack prepare [email protected] --activate | ||
corepack enable | ||
# Pin to v8 as latest (v9) needs Node.js v18.12 minimum | ||
# see https://r.pnpm.io/comp | ||
corepack install --global pnpm@8 | ||
|
||
pnpm -v | ||
|
||
# Setting NODE_OPTIONS="" disables yarn-injected shenanigans so we can use package from the root | ||
PROJECT_PACKAGE_MANAGER=$(NODE_OPTIONS="" node -e "require('@antfu/ni').detect({ autoinstall: false }).then(console.log)") | ||
IS_GENERATED_CLIENT=$(node -e "const pkg = require('./package.json'); console.log(pkg.name === 'prisma-client')") | ||
|