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`
This commit is contained in:
Neo 2024-01-29 09:32:56 +08:00 committed by GitHub
parent f1068fc60c
commit 4082426c01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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]
@ -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)`)
}
@ -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