@@ -141,11 +141,14 @@ jobs:
141141 - name : Install Python dependencies
142142 run : uv run poe install-dev
143143
144+ - name : Install pnpm
145+ uses : pnpm/action-setup@v4.1.0
146+ with :
147+ run_install : false
148+
144149 - name : Install website dependencies
145- run : |
146- cd website
147- corepack enable
148- yarn install
150+ run : pnpm install --frozen-lockfile
151+ working-directory : website
149152
150153 - name : Snapshot the current version
151154 run : |
@@ -159,8 +162,8 @@ jobs:
159162 jq 'map(select(. != env.MAJOR_MINOR))' versions.json > tmp.json && mv tmp.json versions.json
160163 # Build API reference and create version snapshots
161164 bash build_api_reference.sh
162- npx docusaurus docs:version "$MAJOR_MINOR"
163- npx docusaurus api:version "$MAJOR_MINOR"
165+ pnpm exec docusaurus docs:version "$MAJOR_MINOR"
166+ pnpm exec docusaurus api:version "$MAJOR_MINOR"
164167 # Changelog is not versioned - it is copied from root at build time
165168 rm -f "versioned_docs/version-${MAJOR_MINOR}/changelog.md"
166169 echo "changelog.md" > "versioned_docs/version-${MAJOR_MINOR}/.gitignore"
@@ -169,7 +172,7 @@ jobs:
169172 id : commit_versioned_docs
170173 uses : EndBug/add-and-commit@v10
171174 with :
172- add : " website/versioned_docs website/versioned_sidebars website/versions.json"
175+ add : " website/versioned_docs website/versioned_sidebars website/versions.json website/pnpm-lock.yaml "
173176 message : " docs: version ${{ needs.release_prepare.outputs.version_number }} docs [skip ci]"
174177 default_author : github_actions
175178
0 commit comments