Skip to content

Commit 29fedc0

Browse files
committed
fix ci
1 parent 7fa2afb commit 29fedc0

File tree

4 files changed

+41
-11
lines changed

4 files changed

+41
-11
lines changed

.github/workflows/node.js.yaml

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,22 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- run: corepack enable
17+
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
run_install: false
22+
1823
- name: Install Node.js 22.x.x
1924
uses: actions/setup-node@v4
2025
with:
2126
cache: 'pnpm'
2227
node-version: 22.x.x
23-
- run: pnpm install --frozen-lockfile
28+
29+
- run: pnpm install
30+
2431
- run: pnpm run build-all
32+
2533
- uses: actions/upload-artifact@v4
2634
with:
2735
name: 'build'
@@ -32,45 +40,60 @@ jobs:
3240
runs-on: ubuntu-latest
3341
steps:
3442
- uses: actions/checkout@v4
35-
- run: corepack enable
43+
44+
- name: Setup pnpm
45+
uses: pnpm/action-setup@v4
46+
with:
47+
run_install: false
48+
3649
- name: Install Node.js 22.x.x
3750
uses: actions/setup-node@v4
3851
with:
3952
cache: 'pnpm'
4053
node-version: 22.x.x
41-
- run: pnpm install --frozen-lockfile
54+
55+
- run: pnpm install
56+
4257
- uses: actions/download-artifact@v4
4358
id: download
4459
with:
4560
name: 'build'
4661
path: 'packages'
62+
4763
- run: pnpm test
4864

4965
lint:
5066
runs-on: ubuntu-latest
5167
steps:
5268
- uses: actions/checkout@v4
53-
- run: corepack enable
69+
- name: Setup pnpm
70+
uses: pnpm/action-setup@v4
71+
with:
72+
run_install: false
5473
- name: Install Node.js 22.x.x
5574
uses: actions/setup-node@v4
5675
with:
5776
cache: 'pnpm'
5877
node-version: 22.x.x
59-
- run: pnpm install --frozen-lockfile
78+
- run: pnpm install
6079
- run: pnpm run lint
6180

6281
publint:
6382
needs: ['build']
6483
runs-on: ubuntu-latest
6584
steps:
6685
- uses: actions/checkout@v4
67-
- run: corepack enable
86+
- name: Setup pnpm
87+
uses: pnpm/action-setup@v4
88+
with:
89+
run_install: false
6890
- name: Install Node.js 22.x.x
6991
uses: actions/setup-node@v4
7092
with:
7193
cache: 'pnpm'
7294
node-version: 22.x.x
73-
- run: pnpm install --frozen-lockfile
95+
- run: pnpm install
96+
- run: pnpm run build-all
7497
- uses: actions/download-artifact@v4
7598
id: download
7699
with:

.github/workflows/release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- run: corepack enable
16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
run_install: false
1720
- name: Install Node.js 22.x.x
1821
uses: actions/setup-node@v4
1922
with:

packages/log-api/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
"openapi.json"
2222
],
2323
"scripts": {
24-
"build": "tsc -b tsconfig.build.json",
24+
"build": "tsc -b tsconfig.build.json && pnpm run generate-openapi",
2525
"generate-openapi": "tsx ./scripts/generate-openapi.ts > ./openapi.json",
26-
"prepublish": "pnpm run build && pnpm run generate-openapi"
26+
"prepublish": "pnpm run build"
2727
},
2828
"devDependencies": {
2929
"@types/node": "catalog:",
30+
"tsx": "^4.19.2",
3031
"typescript": "catalog:",
3132
"vite": "catalog:",
3233
"vitest": "catalog:"

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)