Skip to content

Commit

Permalink
Merge pull request #176 from llm-tools/sqlite
Browse files Browse the repository at this point in the history
chore: revert build script
  • Loading branch information
adhityan authored Nov 26, 2024
2 parents e35ff23 + 67dd568 commit 53b5fe1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/publish-via-nx.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async function updatePackageVersion(pkgName, version, versionMap, dryRun) {
if (!found) console.error(`Could not find '${pkgName}' in any of the folders`);
}

async function createRelease(dryRun, version, isCi) {
async function createRelease(dryRun, version, makeGitCommit) {
console.log('Running nx release');
const { workspaceVersion, projectsVersionData } = await releaseVersion({
gitTag: false,
Expand Down Expand Up @@ -89,10 +89,10 @@ async function createRelease(dryRun, version, isCi) {
versionData: projectsVersionData,
version: workspaceVersion,
verbose: true,
dryRun: !isCi,
dryRun,
});

if (isCi) {
if (makeGitCommit) {
console.log('Committing changes');
const git = simpleGit().clean(CleanOptions.FORCE);

Expand All @@ -115,6 +115,7 @@ async function startReleasePipeline() {

const isCi = args['--ci'] ? true : false;
const dryRun = isCi ? false : await confirm({ message: 'Is this a dry run?', default: true, required: true });
const makeGitCommit = isCi ? false : !dryRun;

let version = 'patch';
if (!args['--version']) {
Expand All @@ -133,7 +134,7 @@ async function startReleasePipeline() {
}
} else version = args['--version'];

await createRelease(dryRun, version, isCi);
await createRelease(dryRun, version, makeGitCommit);
}

await startReleasePipeline();

0 comments on commit 53b5fe1

Please sign in to comment.