Skip to content

Commit

Permalink
fix: engine-core release [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jun 16, 2020
1 parent d503b51 commit 39f8811
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/scripts/ci/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,14 @@ async function publishPackages(
: prisma2Version.includes('dev')
? 'dev'
: 'latest'
const newVersion = prisma2Version

let newVersion = prisma2Version
if (
pkgName === '@prisma/engine-core' &&
process.env.BUILDKITE_TAG === '2.0.1'
) {
newVersion = '2.0.1-1'
}

console.log(
`\nPublishing ${chalk.magentaBright(
Expand Down Expand Up @@ -877,7 +884,19 @@ async function publishPackages(
if (process.env.BUILDKITE) {
await run(pkgDir, `pnpm run build`, dryRun)
}
await run(pkgDir, `pnpm publish --no-git-checks --tag ${tag}`, dryRun)
const skipPackages =
process.env.BUILDKITE_TAG === '2.0.1'
? [
'@prisma/debug',
'@prisma/get-platform',
'@prisma/generator-helper',
'@prisma/ink-components',
'@prisma/fetch-engine',
]
: []
if (!skipPackages.includes(pkgName)) {
await run(pkgDir, `pnpm publish --no-git-checks --tag ${tag}`, dryRun)
}
}
}

Expand Down

0 comments on commit 39f8811

Please sign in to comment.