if (!(await isInSyncWithRemote())) {
return
} else {
- console.log(`${pico.green(`✓`)} commit is up-to-date with rmeote.\n`)
+ console.log(`${pico.green(`✓`)} commit is up-to-date with remote.\n`)
}
let targetVersion = args._[0]
if (!skipTests) {
step('\nRunning tests...')
if (!isDryRun) {
- await run('pnpm', ['test', 'run'])
+ await run('pnpm', ['run', 'test'])
} else {
console.log(`Skipped (dry run)`)
}
if (isDryRun) {
additionalPublishFlags.push('--dry-run')
}
- if (skipGit) {
+ if (isDryRun || skipGit) {
additionalPublishFlags.push('--no-git-checks')
}
// bypass the pnpm --publish-branch restriction which isn't too useful to us