Skip to content

Commit

Permalink
tweak to release.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck committed May 21, 2024
1 parent 890ff70 commit fe10690
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions release.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const { execSync } = require('child_process');
const readline = require('readline');
const fs = require('fs');

// name of the main developer branch
const devBranchName = 'main_v1';

const releaseBranchName = 'release-';
Expand Down Expand Up @@ -120,9 +121,9 @@ const createRelease = (mainBranch) => {

// read current package version. this contains the version we're releasing.
const mainVersion = readPackageVersion();
if (mainVersion.build !== devBranchName) {
if (mainVersion.build !== 'dev') {
// say something?
console.warn(`warning: package isn't tagged as '${devBranchName}' build.`);
console.warn(`warning: package isn't tagged as 'dev' build.`);
}

// build release branch string
Expand Down

0 comments on commit fe10690

Please sign in to comment.