You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2023/02/07 14:22:47 UTC
[linkis-website] branch dev updated: Optimize build speed (#659)
This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/linkis-website.git
The following commit(s) were added to refs/heads/dev by this push:
new 80fcf8e78a Optimize build speed (#659)
80fcf8e78a is described below
commit 80fcf8e78a8a88343d03ef975cd4ca36ae695435
Author: binbincheng <10...@users.noreply.github.com>
AuthorDate: Tue Feb 7 22:22:40 2023 +0800
Optimize build speed (#659)
* Optimize build speed
---
.github/workflows/deploy.yml | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 5e803fa62d..4f0f41888d 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -23,7 +23,26 @@ jobs:
- uses: actions/setup-node@v2.2.0
with:
node-version: 16
-
+
+ - name: Cache node modules
+ id: cache-npm
+ uses: actions/cache@v3
+ 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') }}
+ restore-keys: |
+ ${{ runner.os }}-build-${{ env.cache-name }}-
+ ${{ runner.os }}-build-
+ ${{ runner.os }}-
+
+ - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
+ name: List the state of node modules
+ continue-on-error: true
+ run: npm list
+
- name: install
run: |
npm install
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org