From 542a4f69369f1c89ffb2cb3d2025504a2e8080f3 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 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7f32481c0..782c0ccd7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -223,8 +223,21 @@ 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 $BASE_COMMIT HEAD" + env: + BASE_COMMIT: ${{ github.event.pull_request.base.sha || 'HEAD~1' }} - name: Upload generated report uses: actions/upload-artifact@v2