Skip to content

Commit c21e3c6

Browse files
committed
cache npm packages in github actions
1 parent 084d2f0 commit c21e3c6

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ jobs:
66
steps:
77
- uses: actions/checkout@v5
88
- uses: actions/setup-node@v5
9+
with:
10+
cache: npm
911
- run: npm ci
1012
- run: npm test
1113
- run: cd examples && npm ci

.github/workflows/publish-docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v5
2121
- uses: actions/setup-node@v5
22+
with:
23+
cache: npm
2224
- run: npm ci
2325
- run: npm run doc
2426
- uses: actions/configure-pages@v5

0 commit comments

Comments
 (0)