chore(website): migrate to pnpm and enable minimum release age#724
Open
chore(website): migrate to pnpm and enable minimum release age#724
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #724 +/- ##
==========================================
+ Coverage 95.28% 95.30% +0.02%
==========================================
Files 45 45
Lines 5114 5115 +1
==========================================
+ Hits 4873 4875 +2
+ Misses 241 240 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Migrate the website/ subdirectory from Yarn 4 to pnpm 10.24.0 as part of an org-wide supply-chain hardening effort. The Python root (uv) is unchanged. Enables a 24h minimum release age for third-party packages via pnpm-workspace.yaml (with @apify/* and @crawlee/* excluded), and mirrors the policy in renovate.json using internalChecksFilter=strict. Also renames the renamed-by-Docusaurus future.experimental_faster option to future.faster in the Docusaurus config, and replaces yarn/npx calls in workflows and poe tasks with their pnpm equivalents. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0bab2c6 to
c77613f
Compare
Replaces the local .github/actions/pnpm-install composite copy with the shared one from apify/workflows@main. Identical behavior, less duplication.
Silences npm warnings about unknown options like node-linker; pnpm reads the same keys from pnpm-workspace.yaml in camelCase form.
Block accidental npm/yarn install — npm 10.5+ and pnpm 10.x both honor devEngines.packageManager and refuse to run when it doesn't match.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates the
website/subdirectory from Yarn 4 to pnpm 10.24.0 as part of an org-wide supply-chain hardening effort. The Python root (uv) is unchanged.Enables a 24h minimum release age for third-party npm packages via
pnpm-workspace.yaml(with@apify/*and@crawlee/*excluded so first-party releases stay fast), and mirrors the policy inrenovate.jsonviainternalChecksFilter=strictplus apackageRulethat setsminimumReleaseAge: 0 daysfor the same scopes.Changes
website/package.json: renamed toapify-client-python-website, markedprivate: true, setpackageManagertopnpm@10.24.0, rewrote all script references fromyarntopnpm.website/pnpm-workspace.yaml(new): setsminimumReleaseAge: 1440(minutes) with@apify/*and@crawlee/*excluded.website/.npmrc(new): enables hoisted node linker and workspace package linking.website/pnpm-lock.yaml(new): generated frompnpm install.website/yarn.lock,website/.yarnrc.yml,website/.yarn/(only containedinstall-state.gz; no.yarn/patches/directory was present).website/docusaurus.config.js: renamedfuture.experimental_fastertofuture.faster(required by Docusaurus 3.10)..github/actions/pnpm-install/action.yml(new): composite action copied verbatim fromapify-client-jsfor use by future CI workflows..github/workflows/_release_docs.yaml:git add website/yarn.lock->git add website/pnpm-lock.yaml..github/workflows/manual_release_stable.yaml: replaced inlineyarn install+npx docusaurusin theversion_docsjob withpnpm/action-setup,pnpm install --frozen-lockfile, andpnpm exec docusaurus. (Steps are inlined rather than calling./.github/actions/pnpm-installbecause GitHub Actions does not supportworking-directoryonuses:steps and the composite expects to run from the repo containing the lockfile.)pyproject.toml:poetasksupdate-docs-theme,build-docs, andrun-docsnow usepnpminstead ofyarn/corepack enable && yarn.renovate.json: addedinternalChecksFilter: "strict"and a package rule granting@apify/*/@crawlee/*a0 daysminimum release age..gitignore: dropped the now-obsoletewebsite/.yarnentry.Verified locally:
pnpm install,pnpm install --frozen-lockfile, and Docusaurus config validation all pass. A fullpnpm buildis gated by the repo's Python docs pipeline (pydoc-markdown) which is invoked byuv run poe build-docsin CI and was not re-run locally; the Docusaurus config loads past thefuture.fasterrename cleanly.Rolls out the same pattern just applied to
apify-sdk-python.🤖 Generated with Claude Code