Skip to content

Commit 4082426

Browse files
authored
workflow: minor tweaks for release script (#10220)
- `pnpm run test` instead of `pnpm test run` - also need `--no-git-checks` when drying run - fix spelling of `remote`
1 parent f1068fc commit 4082426

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/release.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async function main() {
114114
if (!(await isInSyncWithRemote())) {
115115
return
116116
} else {
117-
console.log(`${pico.green(`✓`)} commit is up-to-date with rmeote.\n`)
117+
console.log(`${pico.green(`✓`)} commit is up-to-date with remote.\n`)
118118
}
119119

120120
let targetVersion = args._[0]
@@ -239,7 +239,7 @@ async function main() {
239239
if (!skipTests) {
240240
step('\nRunning tests...')
241241
if (!isDryRun) {
242-
await run('pnpm', ['test', 'run'])
242+
await run('pnpm', ['run', 'test'])
243243
} else {
244244
console.log(`Skipped (dry run)`)
245245
}
@@ -307,7 +307,7 @@ async function main() {
307307
if (isDryRun) {
308308
additionalPublishFlags.push('--dry-run')
309309
}
310-
if (skipGit) {
310+
if (isDryRun || skipGit) {
311311
additionalPublishFlags.push('--no-git-checks')
312312
}
313313
// bypass the pnpm --publish-branch restriction which isn't too useful to us

0 commit comments

Comments
 (0)