Skip to content

Commit

Permalink
fix: commit all lib files in next release
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelmaeuer committed Jan 19, 2023
1 parent c08394b commit c2ed3ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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') {
Expand Down

0 comments on commit c2ed3ca

Please sign in to comment.