From a2df83b4787a6a3400a1681d84f0bfbf2a26b800 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Thu, 21 Aug 2025 13:59:19 +0100 Subject: [PATCH] Cache npm dependencies --- .github/workflows/pr-checks.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index c32d05edc..6122e77de 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -24,6 +24,17 @@ jobs: steps: - uses: actions/checkout@v5 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + cache: 'npm' + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.11 + - name: Install dependencies run: | # Use the system Bash shell to ensure we can run commands like `npm install` @@ -31,11 +42,6 @@ jobs: npm config set script-shell bash npm install - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: 3.11 - - name: Verify compiled JS up to date run: .github/workflows/script/check-js.sh