Skip to content

Commit

Permalink
Use npm dependencies cache from setup-node@v2
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Sep 19, 2021
1 parent f2ed3f2 commit a5101fa
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,11 @@ jobs:
NODE_OPTIONS: '--max_old_space_size=4096'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 16.8 # TODO: Make it 16 after this is fixed: https://github.com/nodejs/node/issues/40030

- uses: actions/cache@v2
id: cache-npm
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('ui/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: npm install dependencies
run: |
Expand Down

0 comments on commit a5101fa

Please sign in to comment.