Skip to content

Commit e907d85

Browse files
committed
chore: add build and test before release
1 parent 313bc85 commit e907d85

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ jobs:
4242
- name: Install Playwright browsers
4343
run: npx playwright install
4444

45+
- name: Build
46+
run: pnpm build
47+
48+
- name: Test
49+
run: pnpm test
50+
4551
- name: Release
4652
run: pnpm release
4753
env:

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@
117117
"clean": "rimraf lib",
118118
"build": "pnpm clean && cross-env NODE_ENV=production tsup --splitting",
119119
"prepare": "pnpm simple-git-hooks init",
120-
"release": "release publish",
121-
"prepublishOnly": "pnpm build && pnpm test"
120+
"release": "release publish"
122121
},
123122
"files": [
124123
"lib",
@@ -211,4 +210,4 @@
211210
"path": "./node_modules/cz-conventional-changelog"
212211
}
213212
}
214-
}
213+
}

0 commit comments

Comments
 (0)