Skip to content

Commit ee269d4

Browse files
committed
workflow: reorder npm pack
1 parent a6d8bae commit ee269d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/release.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ async function release() {
2020
console.log(cyan('Building...'))
2121
spawn.sync('pnpm', ['build'], { stdio: 'inherit' })
2222

23+
console.log(cyan('Packing...'))
24+
spawn.sync('npm', ['pack'], { stdio: 'inherit' })
25+
2326
const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8'))
2427
const { version: currentVersion } = pkg
2528

@@ -65,9 +68,6 @@ async function release() {
6568
throw new Error(`invalid target version: ${targetVersion}`)
6669
}
6770

68-
console.log(cyan('Packing...'))
69-
spawn.sync('npm', ['pack'], { stdio: 'inherit' })
70-
7171
const { yes } = await prompts({
7272
type: 'confirm',
7373
name: 'yes',

0 commit comments

Comments
 (0)