Skip to content

Commit f7de413

Browse files
committed
ci: fix bugs
1 parent c710c4a commit f7de413

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
version: 8.x
2525

2626
- name: install node modules
27-
run: pnpm config set enable-pre-post-scripts false "" && pnpm i --prod
27+
run: npm pkg delete scripts.prepare && pnpm i
2828

2929
- name: build package
3030
run: pnpm build

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"lint:fix": "eslint src/** --fix --ext=ts",
1919
"format:check": "prettier --check src/**",
2020
"format:fix": "prettier --write src/**",
21-
"postinstall": "husky install",
21+
"prepare": "husky install",
2222
"watch": "parcel watch",
2323
"build": "parcel build",
2424
"test:dev": "vitest",
@@ -54,5 +54,6 @@
5454
"typescript": "^5.1.6",
5555
"vite": "^4.4.7",
5656
"vitest": "^0.33.0"
57-
}
57+
},
58+
"prepare": "''"
5859
}

0 commit comments

Comments
 (0)