ci: use setup-node 22.9.0 and pnpm action

This commit is contained in:
Peter Steinberger
2025-11-25 06:21:54 +01:00
parent d925d9849c
commit 5b17aba4fc

View File

@@ -11,32 +11,26 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node 22.21.1
run: |
set -euo pipefail
NODE_VERSION=22.21.1
mkdir -p "$RUNNER_TEMP/node"
curl -fsSL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz" \
| tar -xJ -C "$RUNNER_TEMP/node" --strip-components=1
echo "$RUNNER_TEMP/node/bin" >> "$GITHUB_PATH"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.9.0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.23.0
- name: Node version
run: |
export PATH="$RUNNER_TEMP/node/bin:$PATH"
node -v
npm -v
- name: Install pnpm
run: |
export PATH="$RUNNER_TEMP/node/bin:$PATH"
npm install -g pnpm@10.23.0
pnpm -v
- name: Install dependencies
env:
CI: true
run: |
export PATH="$RUNNER_TEMP/node/bin:$PATH"
pnpm install --frozen-lockfile --ignore-scripts=false
run: pnpm install --frozen-lockfile --ignore-scripts=false
- name: Lint
run: pnpm lint