This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory-site.git
The following commit(s) were added to refs/heads/main by this push:
new 1a8cc87113 ci: optimize npm install in deploy workflow (#456)
1a8cc87113 is described below
commit 1a8cc87113be0813aeff2abaf2c7327fa0a649e2
Author: Shawn Yang <[email protected]>
AuthorDate: Thu May 21 20:53:04 2026 +0800
ci: optimize npm install in deploy workflow (#456)
---
.github/workflows/deploy.yml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 96a2f77bac..2dd7e4b7e5 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -31,6 +31,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 24.x
+ cache: npm
+ cache-dependency-path: package-lock.json
- uses: actions/setup-python@v3
with:
@@ -44,7 +46,7 @@ jobs:
ls -lR ../../i18n/zh-CN/ ../../i18n/eu-US/
- name: NPM Install
- run: npm install
+ run: npm ci --prefer-offline --fund=false
- name: Restore Docusaurus cache
uses: actions/cache@v4
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]