We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64d393b commit 43ceb29Copy full SHA for 43ceb29
1 file changed
scripts/publish.ts
@@ -28,13 +28,20 @@ const releaseCommitMsg = (version: string) => `release: v${version}`
28
async function run() {
29
let branchName: string =
30
process.env.BRANCH ??
31
- (process.env.PR_NUMBER ? `pr-${process.env.PR_NUMBER}` : currentGitBranch())
+ // (process.env.PR_NUMBER ? `pr-${process.env.PR_NUMBER}` : currentGitBranch())
32
+ currentGitBranch()
33
34
const branchConfig: BranchConfig = branchConfigs[branchName] || {
35
prerelease: true,
36
ghRelease: false,
37
}
38
39
+ if (!branchConfig) {
40
+ console.log(`No publish config found for branch: ${branchName}`)
41
+ console.log('Exiting...')
42
+ process.exit(0)
43
+ }
44
+
45
const isLatestBranch = branchName === latestBranch
46
const npmTag = isLatestBranch ? 'latest' : branchName
47
0 commit comments