Skip to content

Commit

Permalink
workflow: minor tweaks for release script (#10220)
Browse files Browse the repository at this point in the history
- `pnpm run test` instead of `pnpm test run`
- also need `--no-git-checks` when drying run
- fix spelling of `remote`
  • Loading branch information
justorez authored Jan 29, 2024
1 parent f1068fc commit 4082426
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async function main() {
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]
Expand Down Expand Up @@ -239,7 +239,7 @@ async function main() {
if (!skipTests) {
step('\nRunning tests...')
if (!isDryRun) {
await run('pnpm', ['test', 'run'])
await run('pnpm', ['run', 'test'])
} else {
console.log(`Skipped (dry run)`)
}
Expand Down Expand Up @@ -307,7 +307,7 @@ async function main() {
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
Expand Down

0 comments on commit 4082426

Please sign in to comment.