chore: Update CircleCI workflow to include approval step before NPM publish for release branches (#4138)

This commit is contained in:
Alireza authored and GitHub committed 2024-05-16 15:03:45 -04:00
1 parent 391ff2243d
commit fb91c6da69
2 files changed
+11 -4

No files matched your search

+4 -2
View File
@@ -19,9 +19,11 @@ async function run() {
let nextVersion;
if (branchName === 'release') {
if (branchName.startsWith('release')) {
console.log('Branch: release');
nextVersion = semver.inc(currentVersion, 'minor');
await fs.writeFile('./commit.txt', currentCommitHash);
console.log('the version is automatically picked up from the version.txt file');
return;
} else {
console.log('Branch: master');
const prereleaseComponents = semver.prerelease(currentVersion);