From 5b17aba4fce5ece3ad4997c54678d50cf941efc7 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 25 Nov 2025 06:21:54 +0100 Subject: [PATCH] ci: use setup-node 22.9.0 and pnpm action --- .github/workflows/ci.yml | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfd3594c1..36af97c56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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