From 84e12a486426567c263641d97869f44e15921eca Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Thu, 8 Apr 2021 20:29:37 +0100 Subject: [PATCH] Cache npm cache between JS build runs (#2710) --- framework/core/.github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/framework/core/.github/workflows/build.yml b/framework/core/.github/workflows/build.yml index 828d3351c..becdb0486 100644 --- a/framework/core/.github/workflows/build.yml +++ b/framework/core/.github/workflows/build.yml @@ -14,6 +14,16 @@ jobs: - name: Check out code uses: actions/checkout@v2 + - name: Restore npm cache + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('js/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + # Our action will install npm, cd into `./js`, run `npm run build`, + # then commit and upload any changes - name: Build production JS uses: flarum/action-build@master env: