Skip to content

Commit a2df83b

Browse files
committed
Cache npm dependencies
1 parent 3edad3e commit a2df83b

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/pr-checks.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,24 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v5
2626

27+
- name: Set up Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: '20.x'
31+
cache: 'npm'
32+
33+
- name: Set up Python
34+
uses: actions/setup-python@v5
35+
with:
36+
python-version: 3.11
37+
2738
- name: Install dependencies
2839
run: |
2940
# Use the system Bash shell to ensure we can run commands like `npm install`
3041
# that are not available in the default shell on Windows.
3142
npm config set script-shell bash
3243
npm install
3344
34-
- name: Set up Python
35-
uses: actions/setup-python@v5
36-
with:
37-
python-version: 3.11
38-
3945
- name: Verify compiled JS up to date
4046
run: .github/workflows/script/check-js.sh
4147

0 commit comments

Comments
 (0)