Skip to content

Commit

Permalink
workflow: reorder npm pack
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Sep 11, 2023
1 parent a6d8bae commit ee269d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/release.mts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ async function release() {
console.log(cyan('Building...'))
spawn.sync('pnpm', ['build'], { stdio: 'inherit' })

console.log(cyan('Packing...'))
spawn.sync('npm', ['pack'], { stdio: 'inherit' })

const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8'))
const { version: currentVersion } = pkg

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

console.log(cyan('Packing...'))
spawn.sync('npm', ['pack'], { stdio: 'inherit' })

const { yes } = await prompts({
type: 'confirm',
name: 'yes',
Expand Down

0 comments on commit ee269d4

Please sign in to comment.