Skip to content

Commit 89dd492

Browse files
committed
ci(docs): simplify docs ci build path
1 parent c8be280 commit 89dd492

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/docs-ci.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,12 @@ jobs:
5252
DOCS_V2_ORIGIN: https://v2.element-plus-x.com
5353
DOCS_ROOT_ORIGIN: https://element-plus-x.com
5454
DOCS_USE_SOURCE: 'true'
55-
run: pnpm run build:docs
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
run: |
58+
mkdir -p apps/internal/metadata/dist
59+
if [[ ! -f apps/internal/metadata/dist/component-contributors.json ]]; then
60+
echo '{}' > apps/internal/metadata/dist/component-contributors.json
61+
fi
62+
pnpm run gen:changelog
63+
pnpm -C apps/docs build

0 commit comments

Comments
 (0)