This is an automated email from the ASF dual-hosted git repository. wangzx pushed a commit to branch ci-cache in repository https://gitbox.apache.org/repos/asf/echarts.git
commit 7114d76b6fcfcb1772ca5f3c6c5140c44335daff Author: plainheart <[email protected]> AuthorDate: Wed Apr 13 23:41:04 2022 +0800 ci: fix node module cache doesn't work --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3df9cac7c..471f1aa7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,16 +29,16 @@ jobs: node-version: ${{ matrix.node-version }} - name: Cache node modules + id: cache-dep uses: actions/cache@v3 env: cache-name: cache-node-modules with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm + path: node_modules key: ${{ runner.os }}-lint-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' + if: steps.cache-dep.outputs.cache-hit != 'true' run: npm ci - name: Collect changed files @@ -69,16 +69,16 @@ jobs: node-version: ${{ matrix.node-version }} - name: Cache node modules + id: cache-dep uses: actions/cache@v3 env: cache-name: cache-node-modules with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm + path: node_modules key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' + if: steps.cache-dep.outputs.cache-hit != 'true' run: npm ci - name: Build release --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
