This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to branch optimize_npm_install in repository https://gitbox.apache.org/repos/asf/fory-site.git
commit f03e0701e216929ee83f240e20481df3efb83986 Author: 慕白 <[email protected]> AuthorDate: Thu May 21 20:47:50 2026 +0800 ci: optimize npm install in deploy workflow --- .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..c0bc37fbc8 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 --no-audit --fund=false - name: Restore Docusaurus cache uses: actions/cache@v4 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
