mirror of
https://github.com/Quad4-Software/MeshChatX.git
synced 2026-08-18 09:49:09 -04:00
feat(ci): add Node.js version verification step to custom setup-node-pnpm action
This commit is contained in:
parent
32610c4f34
commit
b3303e1bc0
1 changed files with 8 additions and 0 deletions
8
.github/actions/setup-node-pnpm/action.yml
vendored
8
.github/actions/setup-node-pnpm/action.yml
vendored
|
|
@ -28,6 +28,14 @@ runs:
|
|||
shell: bash
|
||||
run: corepack enable && corepack prepare "pnpm@${{ inputs.pnpm-version }}" --activate
|
||||
|
||||
- name: Verify Node.js version
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
node -v
|
||||
pnpm -v
|
||||
node -e "const major=Number(process.versions.node.split('.')[0]); if(major<24) process.exit(1)"
|
||||
|
||||
- name: Cache pnpm dependencies
|
||||
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue