Skip to content

Commit 0b2f905

Browse files
committed
fix: scoping issue in publish script
1 parent f497d44 commit 0b2f905

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

scripts/release/publish.js

+5-10
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,14 @@ try {
3232
console.error(`The commit referenced by "${tag}" is not contained by any release branch.`);
3333
process.exit(1);
3434
}
35-
} catch (ex) {
36-
console.error(ex);
37-
process.exit(1);
38-
}
3935

40-
const [, releaseBranch] = result;
41-
const distTag = releaseBranch === 'master' ? 'next' : releaseBranch;
36+
const [, releaseBranch] = result;
37+
const distTag = releaseBranch === 'master' ? 'next' : releaseBranch;
4238

43-
console.log(
44-
`Attempting to release from branch "${releaseBranch}" using dist-tag "${distTag}".`
45-
);
39+
console.log(
40+
`Attempting to release from branch "${releaseBranch}" using dist-tag "${distTag}".`
41+
);
4642

47-
try {
4843
execa.commandSync(`npm publish --tag ${distTag}`);
4944
} catch (ex) {
5045
console.error(ex);

0 commit comments

Comments
 (0)