diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-07-17 17:35:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-17 17:35:10 +0300 |
commit | 2c51d528c1e30875e7c85f59c27183b56cc6a264 (patch) | |
tree | f59ca4aacb42f6fa71ebce2afca1a40be9db1f79 | |
parent | ea5e3552c25c2c4d49c5a78b1a2dd307eb420eff (diff) |
CI: make use of the `actions/setup-node`'s `cache` option (#937)
-rw-r--r-- | .github/workflows/deploy.yml | 9 | ||||
-rw-r--r-- | .github/workflows/test.yml | 9 |
2 files changed, 2 insertions, 16 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fe566285f..c4b15927d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,14 +22,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: "${{ env.NODE }}" - - - name: Set up npm cache - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} + cache: npm - name: Install npm dependencies run: npm ci diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d54df7069..933ab5745 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,17 +22,10 @@ jobs: uses: actions/setup-node@v2 with: node-version: "${{ env.NODE }}" + cache: npm - run: java -version - - name: Set up npm cache - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} - - name: Install npm dependencies run: npm ci |