From 6d09bd4f744fa8d40cf3d00b14c8f1c7e443aaa7 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Thu, 8 Jul 2021 11:28:28 +0300 Subject: [PATCH] Fix failing CI on main --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7f32481c04..39aae561b39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -223,8 +223,19 @@ jobs: with: node-version: ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }} + - name: Cache Node.js modules + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-node- + + - name: Install Dependencies + run: npm ci + - name: Generate report - run: 'node resources/diff-npm-package.js ${{ github.event.pull_request.base.sha }} HEAD' + run: "node resources/diff-npm-package.js ${{ github.base_ref || 'HEAD~1' }} HEAD" - name: Upload generated report uses: actions/upload-artifact@v2