Skip to content

Commit a6d8bae

Browse files
committed
workflow: npm pack before releasing
1 parent ae9c46d commit a6d8bae

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ TODOs.md
1111
.env.*
1212
.vitepress/cache
1313
.npmrc
14+
*.tgz

scripts/release.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ async function release() {
6565
throw new Error(`invalid target version: ${targetVersion}`)
6666
}
6767

68+
console.log(cyan('Packing...'))
69+
spawn.sync('npm', ['pack'], { stdio: 'inherit' })
70+
6871
const { yes } = await prompts({
6972
type: 'confirm',
7073
name: 'yes',

0 commit comments

Comments
 (0)