Skip to content

Commit 56ff98c

Browse files
authored
chore(repo): check for upstream for real release (#7410)
1 parent fd05cf9 commit 56ff98c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/release.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ const yargs = require('nx/node_modules/yargs');
3636
if (!process.env.GH_TOKEN && !process.env.GITHUB_TOKEN) {
3737
throw new Error(`GH_TOKEN or GITHUB_TOKEN environment variable must be set in order to run a real release`);
3838
}
39+
if (options.gitRemote !== 'upstream') {
40+
throw new Error(
41+
`Expected --gitRemote to be set to "upstream" when running a real release. Add --gitRemote=upstream to the release command.`
42+
);
43+
}
3944
}
4045

4146
// Prepare the packages for publishing

0 commit comments

Comments
 (0)