From 5f86d693fdef398b451679b55bcf520265c568a7 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 4 Aug 2021 15:37:31 +0300 Subject: [PATCH] Fix failing CI on main (#3209) --- .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..92a631f10b 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