Skip to content

Commit

Permalink
chore(repo): check for upstream for real release (#7410)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry authored Dec 20, 2023
1 parent fd05cf9 commit 56ff98c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ const yargs = require('nx/node_modules/yargs');
if (!process.env.GH_TOKEN && !process.env.GITHUB_TOKEN) {
throw new Error(`GH_TOKEN or GITHUB_TOKEN environment variable must be set in order to run a real release`);
}
if (options.gitRemote !== 'upstream') {
throw new Error(
`Expected --gitRemote to be set to "upstream" when running a real release. Add --gitRemote=upstream to the release command.`
);
}
}

// Prepare the packages for publishing
Expand Down

0 comments on commit 56ff98c

Please sign in to comment.