Skip to content

Commit 53ccfaf

Browse files
committed
refactor: add test & build docs before new version
1 parent c4f2c04 commit 53ccfaf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/version.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ if (!versionName) {
1010
async function main() {
1111
const packages = ['core', 'desktop', 'docs', 'electron-app', 'tauri-app']
1212

13-
// build before create version to a prevent errors
13+
// test
14+
await command('npm test')
15+
16+
// build docs
17+
await command('npm -w docs run generate')
18+
19+
// build app
1420
await command('npm run build')
1521

1622
for await (const name of packages) {

0 commit comments

Comments
 (0)