chore: use pnpm in release script
This commit is contained in:
parent
34e61762d6
commit
3f4c50ca83
@ -80,7 +80,7 @@ async function main() {
|
|||||||
step('\nRunning tests...')
|
step('\nRunning tests...')
|
||||||
if (!skipTests && !isDryRun) {
|
if (!skipTests && !isDryRun) {
|
||||||
await run(bin('jest'), ['--clearCache'])
|
await run(bin('jest'), ['--clearCache'])
|
||||||
await run('npm', ['test', '--', '--bail'])
|
await run('pnpm', ['test', '--', '--bail'])
|
||||||
} else {
|
} else {
|
||||||
console.log(`(skipped)`)
|
console.log(`(skipped)`)
|
||||||
}
|
}
|
||||||
@ -92,16 +92,16 @@ async function main() {
|
|||||||
// build all packages with types
|
// build all packages with types
|
||||||
step('\nBuilding all packages...')
|
step('\nBuilding all packages...')
|
||||||
if (!skipBuild && !isDryRun) {
|
if (!skipBuild && !isDryRun) {
|
||||||
await run('npm', ['run', 'build', '--', '--release'])
|
await run('pnpm', ['run', 'build', '--', '--release'])
|
||||||
// test generated dts files
|
// test generated dts files
|
||||||
step('\nVerifying type declarations...')
|
step('\nVerifying type declarations...')
|
||||||
await run('npm', ['run', 'test-dts-only'])
|
await run('pnpm', ['run', 'test-dts-only'])
|
||||||
} else {
|
} else {
|
||||||
console.log(`(skipped)`)
|
console.log(`(skipped)`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// generate changelog
|
// generate changelog
|
||||||
await run(`npm`, ['run', 'changelog'])
|
await run(`pnpm`, ['run', 'changelog'])
|
||||||
|
|
||||||
const { stdout } = await run('git', ['diff'], { stdio: 'pipe' })
|
const { stdout } = await run('git', ['diff'], { stdio: 'pipe' })
|
||||||
if (stdout) {
|
if (stdout) {
|
||||||
|
Loading…
Reference in New Issue
Block a user