From c2ed3cafbec3b49eeef22910e63f774048f0f0ec Mon Sep 17 00:00:00 2001 From: Rafael M Date: Thu, 19 Jan 2023 16:25:51 +0100 Subject: [PATCH] fix: commit all lib files in next release --- build/scripts/release.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/scripts/release.js b/build/scripts/release.js index 153232fb..d97ee0b8 100644 --- a/build/scripts/release.js +++ b/build/scripts/release.js @@ -148,12 +148,14 @@ try { ) log(`About to publish ${packageName}@${nextVersion} to npm.`) + // if (!readline.keyInYN('Sound good? ')) { if (!readline.keyInYN('Sound good? (no release, only dry-run) ')) { log('OK. Stopping release.') exit(0) } log('Publishing...') + // if (exec(`cd ${outDir} && npm publish`).code !== 0) { if (exec(`cd ${outDir} && npm publish --dry-run`).code !== 0) { logError('Publish failed. Aborting release.') exit(1) @@ -166,7 +168,8 @@ try { log('Committing changes...') const newTagName = `v${nextVersion}` - exec(`git add ${versionLoc}`) + // exec(`git add ${versionLoc}`) + exec(`git add -A`) exec(`git commit -m "${packageName} ${newTagName}"`) if (packageName === 'recompose') {