Skip to content

Commit 06a2e36

Browse files
committed
ci: use node-version file + adjust pnpm setup
1 parent adaaceb commit 06a2e36

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/release-continuous.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ jobs:
99
- name: Checkout code
1010
uses: actions/checkout@v4
1111

12-
- run: corepack enable
12+
- name: Install pnpm
13+
uses: pnpm/action-setup@v4
14+
15+
- run: Install Node.js
1316
- uses: actions/setup-node@v4
1417
with:
15-
node-version: lts/*
18+
node-version-file: '.node-version'
1619
cache: 'pnpm'
1720

1821
- name: Install dependencies

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919

20-
- run: corepack enable
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
2122

2223
- name: Set node
2324
uses: actions/setup-node@v4
2425
with:
25-
node-version: lts/*
26+
node-version-file: '.node-version'
2627
cache: pnpm
2728
registry-url: 'https://registry.npmjs.org'
2829

.node-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.12

0 commit comments

Comments
 (0)