Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2021-07-17 17:35:10 +0300
committerGitHub <noreply@github.com>2021-07-17 17:35:10 +0300
commit2c51d528c1e30875e7c85f59c27183b56cc6a264 (patch)
treef59ca4aacb42f6fa71ebce2afca1a40be9db1f79 /.github/workflows
parentea5e3552c25c2c4d49c5a78b1a2dd307eb420eff (diff)
CI: make use of the `actions/setup-node`'s `cache` option (#937)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/deploy.yml9
-rw-r--r--.github/workflows/test.yml9
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