Skip to content

workflow: fix test command #10220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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