Skip to content

Commit 825c35f

Browse files
update ci
1 parent 3395ec9 commit 825c35f

File tree

3 files changed

+7
-32
lines changed

3 files changed

+7
-32
lines changed

.github/workflows/ci-legacy.yaml

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88
contents: read
99

1010
jobs:
11-
test-legacy:
11+
build-test-legacy:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Harden the runner (Audit all outbound calls)
@@ -28,40 +28,14 @@ jobs:
2828
- name: Install Node.js
2929
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3030
with:
31-
node-version: 20
32-
cache: 'pnpm'
33-
34-
- name: Install dependencies
35-
run: pnpm install
36-
37-
- name: Run legacy tests
38-
run: pnpm test:legacy
39-
40-
build-legacy:
41-
runs-on: ubuntu-latest
42-
steps:
43-
- name: Harden the runner (Audit all outbound calls)
44-
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
45-
with:
46-
egress-policy: audit
47-
48-
- name: Checkout
49-
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
50-
51-
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
52-
name: Install pnpm
53-
with:
54-
version: 10
55-
run_install: false
56-
57-
- name: Install Node.js
58-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
59-
with:
60-
node-version: 20
31+
node-version-file: ".nvmrc"
6132
cache: 'pnpm'
6233

6334
- name: Install dependencies
6435
run: pnpm install
6536

6637
- name: Build legacy
6738
run: pnpm build:legacy
39+
40+
- name: Run legacy tests
41+
run: pnpm test:legacy

.github/workflows/publish-legacy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
version: 9
6767
- uses: actions/setup-node@v4
6868
with:
69-
node-version: 20
69+
node-version-file: ".nvmrc"
7070

7171
- name: Install dependencies
7272
run: |

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

0 commit comments

Comments
 (0)