Skip to content

Commit b6e532d

Browse files
committed
fixing docs deploy ci workflow
1 parent c4309db commit b6e532d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ jobs:
8484
- name: Build stable documentation from release tag
8585
if: steps.release.outputs.exists == 'true'
8686
run: |
87-
# Save config from main (has version dropdown and dynamic base path)
87+
# Save docs build files from main (config has version dropdown/dynamic
88+
# base path, and package.json/lockfile have its dependencies)
8889
cp docs/.vitepress/config.mts /tmp/config.mts
90+
cp docs/package.json /tmp/docs-package.json
91+
cp pnpm-lock.yaml /tmp/pnpm-lock.yaml
8992
9093
# Remove S3-extracted uxstudio files before checkout to avoid conflicts
9194
# (older tags still have these files tracked in git)
@@ -101,8 +104,10 @@ jobs:
101104
tar -xzf /tmp/uxstudio-4.5.tar.gz -C docs/public/uxstudio
102105
tar -xzf /tmp/uxstudio-4.6.tar.gz -C docs/public/uxstudio
103106
104-
# Restore config from main (has version dropdown and dynamic base path)
107+
# Restore docs build files from main so dependencies match the config
105108
cp /tmp/config.mts docs/.vitepress/config.mts
109+
cp /tmp/docs-package.json docs/package.json
110+
cp /tmp/pnpm-lock.yaml pnpm-lock.yaml
106111
107112
# Build at release tag with main's config (no IS_DEV_BUILD = stable at root)
108113
pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)