Skip to content

Commit

Permalink
ci: use node-version file + adjust pnpm setup
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 3, 2025
1 parent adaaceb commit 06a2e36
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release-continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- run: corepack enable
- name: Install pnpm
uses: pnpm/action-setup@v4

- run: Install Node.js
- uses: actions/setup-node@v4
with:
node-version: lts/*
node-version-file: '.node-version'
cache: 'pnpm'

- name: Install dependencies
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ jobs:
with:
fetch-depth: 0

- run: corepack enable
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version-file: '.node-version'
cache: pnpm
registry-url: 'https://registry.npmjs.org'

Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.12

0 comments on commit 06a2e36

Please sign in to comment.