From e9143da530b3879a073aa3a85d67e935839c2b7b Mon Sep 17 00:00:00 2001 From: Mathias Schopmans Date: Mon, 11 Mar 2024 10:24:58 +0100 Subject: [PATCH] ci: add caching of npm modules --- .github/workflows/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 48b94d2..8314244 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,14 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "lts/*" + - uses: actions/cache@v4 + with: + path: | + ~/.npm + **/node_modules + key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-npm - run: npm ci - run: npm run build:data - run: npm run build