Skip to content

Commit bb1ee8c

Browse files
authored
Merge pull request #506 from bids-standard/ci/legacy-cache
chore(ci): Cache npm packages
2 parents 8417d06 + 259402c commit bb1ee8c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/validate_datasets.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,19 @@ jobs:
4040
if: matrix.bids-validator == 'legacy'
4141
uses: actions/setup-node@v4
4242
with:
43-
node-version: 18
43+
node-version: 22
44+
45+
- name: Set cache name
46+
if: matrix.bids-validator == 'legacy'
47+
run:
48+
echo "MONTH=$( date +%Y%m )" >> $GITHUB_ENV
49+
50+
- name: Load npm cache
51+
if: matrix.bids-validator == 'legacy'
52+
uses: actions/cache@v4
53+
with:
54+
path: ~/.npm
55+
key: npm-${{ runner.os }}-${{ env.MONTH }}
4456

4557
- uses: denoland/setup-deno@v2
4658
if: matrix.bids-validator != 'legacy'

0 commit comments

Comments
 (0)