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