Skip to content

Commit dcffc52

Browse files
committed
feat(ci): add prepublishOnly hook
1 parent 876ffa3 commit dcffc52

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.github/workflows/release.yml

-6
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ jobs:
2424
- name: Enable Corepack
2525
run: corepack enable
2626

27-
- name: Install dependencies
28-
run: pnpm install
29-
30-
- name: Build the release
31-
run: pnpm run build
32-
3327
- name: Publish to npm
3428
run: pnpm -r --filter './packages/**' --filter './.stacks' publish --access public --no-git-checks
3529
env:

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"pnpm": ">=7.3.0"
4242
},
4343
"scripts": {
44-
"build": "pnpm fresh && pnpm -r --filter './packages/**' --filter './.stacks' run build",
44+
"build": "pnpm -r --filter './packages/**' --filter './.stacks' run build",
4545
"build:stacks": "pnpm --filter './.stacks' run build",
4646
"build:composables": "pnpm --filter './packages/composables' run build",
4747
"build:components": "pnpm --filter './packages/components' run build",
@@ -61,6 +61,7 @@
6161
"lint": "eslint .",
6262
"lint:fix": "eslint . --fix",
6363
"play": "pnpm --filter './playground' dev",
64+
"prepublishOnly": "pnpm i && pnpm run build",
6465
"release": "npx bumpp package.json .stacks/package.json packages/*/package.json --execute 'pnpm run changelog' --all",
6566
"size": "esno .stacks/scripts/size.ts",
6667
"stub": "pnpm -r --parallel run stub",

0 commit comments

Comments
 (0)