Skip to content

Commit 5f86d69

Browse files
Fix failing CI on main (#3209)
1 parent 6a5f51f commit 5f86d69

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,21 @@ jobs:
223223
with:
224224
node-version: ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
225225

226+
- name: Cache Node.js modules
227+
uses: actions/cache@v2
228+
with:
229+
path: ~/.npm
230+
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
231+
restore-keys: |
232+
${{ runner.OS }}-node-
233+
234+
- name: Install Dependencies
235+
run: npm ci
236+
226237
- name: Generate report
227-
run: 'node resources/diff-npm-package.js ${{ github.event.pull_request.base.sha }} HEAD'
238+
run: 'node resources/diff-npm-package.js $BASE_COMMIT HEAD'
239+
env:
240+
BASE_COMMIT: ${{ github.event.pull_request.base.sha || 'HEAD~1' }}
228241

229242
- name: Upload generated report
230243
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)