[Doc] use package.json from main (#55083)

Signed-off-by: DanRoscigno <dan@roscigno.com>
This commit is contained in:
Dan Roscigno 2025-01-14 21:54:19 -05:00 committed by GitHub
parent 79a03f9067
commit 6e3d945bb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -130,6 +130,11 @@ jobs:
rm -rf ./docs/release_notes ./docs/ecosystem_release
mv ../zh ./i18n/zh/docusaurus-plugin-content-docs/current
rm -rf ./i18n/zh/docusaurus-plugin-content-docs/current/release_notes ./i18n/zh/docusaurus-plugin-content-docs/current/ecosystem_release
# Using package.json and yarn.lock from a PR is not safe, so copy from main branch.
rm package.json
rm yarn.lock
curl -O https://raw.githubusercontent.com/StarRocks/starrocks/refs/heads/main/docs/docusaurus/package.json
curl -O https://raw.githubusercontent.com/StarRocks/starrocks/refs/heads/main/docs/docusaurus/yarn.lock
yarn install --frozen-lockfile
yarn clear
yarn build