Skip to content

Commit

Permalink
chore: dont switch to prismo locally. Closes #3179
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Aug 4, 2020
1 parent eb3ea11 commit 8b4ef60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/scripts/ci/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,10 @@ async function publishPackages(
}

if (process.env.UPDATE_STUDIO || process.env.PATCH_BRANCH) {
await run('.', `git config --global user.email "prismabots@gmail.com"`)
await run('.', `git config --global user.name "prisma-bot"`)
if (process.env.CI) {
await run('.', `git config --global user.email "prismabots@gmail.com"`)
await run('.', `git config --global user.name "prisma-bot"`)
}
await run(
'.',
`git remote set-url origin https://${process.env.GITHUB_TOKEN}@github.com/prisma/prisma.git`,
Expand Down
6 changes: 4 additions & 2 deletions src/scripts/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ has to point to the dev version you want to promote, for example 2.1.0-dev.123`)
`You provided RELEASE_PROMOTE_DEV without BUILDKITE_TAG, which doesn't make sense.`,
)
}
await run('.', `git config --global user.email "prismabots@gmail.com"`)
await run('.', `git config --global user.name "prisma-bot"`)
if (process.env.CI) {
await run('.', `git config --global user.email "prismabots@gmail.com"`)
await run('.', `git config --global user.name "prisma-bot"`)
}
if (process.env.RELEASE_PROMOTE_DEV) {
const versions = await getVersionHashes(process.env.RELEASE_PROMOTE_DEV)
// TODO: disable the dry run here
Expand Down

0 comments on commit 8b4ef60

Please sign in to comment.