You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/04/20 12:28:25 UTC
[echarts] branch enhance-workflow updated: chore: add node modules
cache
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch enhance-workflow
in repository https://gitbox.apache.org/repos/asf/echarts.git
The following commit(s) were added to refs/heads/enhance-workflow by this push:
new 88de347 chore: add node modules cache
88de347 is described below
commit 88de34707657b3c2554b1e55cb526c61a235f856
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Apr 20 20:27:01 2021 +0800
chore: add node modules cache
---
.github/workflows/nodejs.yml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
index 38c7ce5..c9495d8 100644
--- a/.github/workflows/nodejs.yml
+++ b/.github/workflows/nodejs.yml
@@ -19,6 +19,16 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
+
+ - name: Cache node modules
+ uses: actions/cache@v2
+ env:
+ cache-name: cache-node-modules
+ with:
+ # npm cache files are stored in `~/.npm` on Linux/macOS
+ path: ~/.npm
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
+
- name: npm install
run: |
npm ci
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org