Skip to content

Commit 031e303

Browse files
committed
chore: fix workflows
1 parent a312bb9 commit 031e303

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ jobs:
4949
- name: Install
5050
run: pnpm install --frozen-lockfile
5151

52+
- name: Generate theme types
53+
run: pnpm generate-theme
54+
5255
- name: Type Check
5356
run: pnpm type-check
5457

@@ -93,6 +96,9 @@ jobs:
9396
with:
9497
node-version: ${{ env.NODE_VERSION }}
9598

99+
- name: Enable Corepack
100+
run: corepack enable
101+
96102
- name: Install
97103
run: pnpm install --frozen-lockfile
98104

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ jobs:
2323
node-version: '22.x'
2424
registry-url: 'https://npm.pkg.github.com'
2525

26+
- name: Enable Corepack
27+
run: corepack enable
28+
2629
- name: Install
27-
run: pnpm install
30+
run: pnpm install --frozen-lockfile
2831

2932
- name: Test
3033
run: pnpm test

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
},
88
"scripts": {
99
"prepare": "husky",
10+
"prebuild": "pnpm generate-theme",
1011
"build": "rm -rf dist && rollup -c rollup.config.mts",
1112
"dev": "rollup -c rollup.config.mts -w",
1213
"eslint": "eslint . --ext .ts,.tsx --fix",

0 commit comments

Comments
 (0)