Commit 4d7b67d
chore(website): migrate to pnpm and enable minimum release age (#724)
## 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 in
`renovate.json` via `internalChecksFilter=strict` plus a `packageRule`
that sets `minimumReleaseAge: 0 days` for the same scopes.
## Changes
- `website/package.json`: renamed to `apify-client-python-website`,
marked `private: true`, set `packageManager` to `pnpm@10.24.0`, rewrote
all script references from `yarn` to `pnpm`.
- `website/pnpm-workspace.yaml` (new): sets `minimumReleaseAge: 1440`
(minutes) with `@apify/*` and `@crawlee/*` excluded.
- `website/.npmrc` (new): enables hoisted node linker and workspace
package linking.
- `website/pnpm-lock.yaml` (new): generated from `pnpm install`.
- Removed Yarn artifacts: `website/yarn.lock`, `website/.yarnrc.yml`,
`website/.yarn/` (only contained `install-state.gz`; no `.yarn/patches/`
directory was present).
- `website/docusaurus.config.js`: renamed `future.experimental_faster`
to `future.faster` (required by Docusaurus 3.10).
- `.github/actions/pnpm-install/action.yml` (new): composite action
copied verbatim from `apify-client-js` for 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 inline `yarn
install` + `npx docusaurus` in the `version_docs` job with
`pnpm/action-setup`, `pnpm install --frozen-lockfile`, and `pnpm exec
docusaurus`. (Steps are inlined rather than calling
`./.github/actions/pnpm-install` because GitHub Actions does not support
`working-directory` on `uses:` steps and the composite expects to run
from the repo containing the lockfile.)
- `pyproject.toml`: `poe` tasks `update-docs-theme`, `build-docs`, and
`run-docs` now use `pnpm` instead of `yarn` / `corepack enable && yarn`.
- `renovate.json`: added `internalChecksFilter: "strict"` and a package
rule granting `@apify/*` / `@crawlee/*` a `0 days` minimum release age.
- `.gitignore`: dropped the now-obsolete `website/.yarn` entry.
Verified locally: `pnpm install`, `pnpm install --frozen-lockfile`, and
Docusaurus config validation all pass. A full `pnpm build` is gated by
the repo's Python docs pipeline (`pydoc-markdown`) which is invoked by
`uv run poe build-docs` in CI and was not re-run locally; the Docusaurus
config loads past the `future.faster` rename cleanly.
Rolls out the same pattern just applied to `apify-sdk-python`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ff9817c commit 4d7b67d
11 files changed
Lines changed: 17504 additions & 18485 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
61 | | - | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
| 69 | + | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
68 | | - | |
69 | | - | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| |||
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
101 | | - | |
102 | | - | |
| 104 | + | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
241 | 248 | | |
242 | 249 | | |
243 | 250 | | |
| |||
263 | 270 | | |
264 | 271 | | |
265 | 272 | | |
266 | | - | |
| 273 | + | |
267 | 274 | | |
268 | 275 | | |
269 | 276 | | |
270 | | - | |
| 277 | + | |
271 | 278 | | |
272 | 279 | | |
273 | 280 | | |
274 | | - | |
| 281 | + | |
275 | 282 | | |
276 | 283 | | |
277 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
51 | 53 | | |
0 commit comments