Skip to content

Commit 78cfbd5

Browse files
committed
fix: rebuild historical docs with audited tooling
1 parent 8d1583e commit 78cfbd5

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ jobs:
5353
echo "DOCS_RELEASE_VERSION=${PACKAGE_VERSION}" >> "${GITHUB_ENV}"
5454
echo "DOCS_RELEASE_CHANNEL=stable" >> "${GITHUB_ENV}"
5555
56+
- name: Select verified website toolchain
57+
shell: bash
58+
run: |
59+
if node -e "process.exit(require('./release/website/package.json').scripts?.verify ? 0 : 1)"; then
60+
echo "DOCS_LEGACY_TAG=false" >> "${GITHUB_ENV}"
61+
else
62+
cp tooling/website/package.json release/website/package.json
63+
cp tooling/website/package-lock.json release/website/package-lock.json
64+
echo "DOCS_LEGACY_TAG=true" >> "${GITHUB_ENV}"
65+
fi
66+
5667
- name: Setup Node.js
5768
uses: actions/setup-node@v4
5869
with:
@@ -71,7 +82,7 @@ jobs:
7182
working-directory: ./release/website
7283
shell: bash
7384
run: |
74-
if node -e "process.exit(require('./package.json').scripts?.verify ? 0 : 1)"; then
85+
if [[ "${DOCS_LEGACY_TAG}" != "true" ]]; then
7586
npm run verify
7687
else
7788
npm run build

changelogs/v3.0.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ v3.0.0 consolidates the unpublished v2.0.7 work into a major release. It adds bo
5252
- Saga step timeouts use `OPERATION_TIMEOUT`, abort the cooperative context signal, and never trigger retries; failed runtime connection attempts await partial resource cleanup before returning.
5353
- Runtime dependencies are pinned to `schema-dsl@2.1.5` and `ioredis@5.11.1`; Node 18-compatible test tooling uses `mongodb-memory-server@10.4.3`.
5454
- Release candidates must be clean, have a valid installed dependency graph, and already exist on `origin`; the same preflight also verifies the docs site and packaged `MIGRATION.md` / `SECURITY.md` consumer guidance.
55-
- Stable Pages deployment separates immutable release-tag content from current release tooling, so historical stable tags can use their tag-native build plus current link and audit gates without deploying unpublished branch content; current releases still require the complete website verification chain.
55+
- Stable Pages deployment separates immutable release-tag content from current release tooling, so historical stable tags can rebuild their tagged docs with the current audited website toolchain and link gate without deploying unpublished branch content; current releases still require the complete website verification chain.
5656

5757
## Compatibility-impacting changes
5858

test/smoke/release-contract.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ test('stable docs deployment requires an npm-verified release tag', () => {
8080
assert.match(deployDocs, /path: release/);
8181
assert.match(deployDocs, /path: tooling/);
8282
assert.match(deployDocs, /ref: \$\{\{ github\.sha \}\}/);
83+
assert.match(deployDocs, /Select verified website toolchain/);
84+
assert.match(deployDocs, /cp tooling\/website\/package-lock\.json release\/website\/package-lock\.json/);
85+
assert.match(deployDocs, /DOCS_LEGACY_TAG/);
8386
assert.match(deployDocs, /npm run verify/);
8487
assert.match(deployDocs, /check-site-links\.cjs --dist/);
8588
assert.match(deployDocs, /npm audit/);

0 commit comments

Comments
 (0)