Skip to content

ci(docs): fix beta Documentation deploy — generate compiled validator before styleguide build#334

Merged
rubenvdlinde merged 1 commit into
betafrom
hotfix/fix-styleguide-validator-build
May 22, 2026
Merged

ci(docs): fix beta Documentation deploy — generate compiled validator before styleguide build#334
rubenvdlinde merged 1 commit into
betafrom
hotfix/fix-styleguide-validator-build

Conversation

@rubenvdlinde
Copy link
Copy Markdown
Contributor

Problem

beta's Documentation deploy has been failing (pre-existing) at the "Install and build component styleguide" step:

Module not found: Can't resolve './validateManifestV2.compiled.js' in 'src/utils'

src/utils/validateManifestV2.compiled.js is gitignored and generated by npm run build:validators (wired as the root prebuild hook). The styleguide sub-build (cd styleguide && npm run build) never triggers the root prebuild, so the file is absent and the component sources can't resolve it.

Fix

Run root npm ci --legacy-peer-deps + npm run build:validators before the styleguide build, generating the validator on disk. Verified locally that build:validators writes the 132KB file.

CI note — admin merge expected

beta's Code Quality (JSDoc ratchet) remains pre-existing-red across ~12 unrelated components (tracked in #333) — unrelated to this CI fix. branch-protection passes (hotfix→beta). Admin-merging to land the deploy fix; once merged, the Documentation deploy should go green and publish the architecture docs (configuration-over-code, atom-card page types, cn-domain-tree overview) merged in #332.

beta's Documentation deploy was failing: the styleguide build imports
src/utils/validateManifestV2.compiled.js, a gitignored artifact produced
by `npm run build:validators` (root prebuild hook). The styleguide
sub-build never triggered that hook, so the file was missing and the
build failed with "Module not found".

Run root `npm ci` + `npm run build:validators` before the styleguide
build so the compiled validator exists on disk.
@rubenvdlinde rubenvdlinde merged commit 5ba7f0c into beta May 22, 2026
2 of 3 checks passed
@rubenvdlinde rubenvdlinde deleted the hotfix/fix-styleguide-validator-build branch May 22, 2026 09:30
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.0.0-beta.70 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant