File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments