From a5101fa9b411d60377cbbb1e9820b0416e99522a Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 18 Sep 2021 22:05:57 -0400 Subject: [PATCH] Use npm dependencies cache from setup-node@v2 --- .github/workflows/pipeline.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 19682037b..de393ae1e 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -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: |