Skip to content

Commit f594a11

Browse files
build: fix postinstall & test in CI (#1)
1 parent 28ea258 commit f594a11

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/push.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
name: Push
3+
4+
on: [ push ]
5+
6+
jobs:
7+
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
node-version:
16+
- 18.x # Maintenance
17+
- 20.x # Active
18+
- 21.x # Current
19+
20+
steps:
21+
22+
- name: Enable Node.js Corepack
23+
run: corepack enable
24+
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
30+
- name: Checkout main branch
31+
uses: actions/checkout@v4
32+
33+
- name: Yarn install
34+
run: yarn install

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"exports": {},
4646
"files": [],
4747
"scripts": {
48-
"postinstall": "husky install && yarn build:all",
48+
"postinstall": "yarn build:all",
4949
"clean": "shx rm -rf ./**/node_modules",
5050
"build:all": "yarn workspaces foreach --exclude . -A -pi -t run build",
5151
"test:all": "yarn workspaces foreach --exclude . -A -pi run test",

0 commit comments

Comments
 (0)