Skip to content

feat: add UI Build Artifacts Check workflow#1229

Open
agiannelli-auth0 wants to merge 5 commits into
mainfrom
chore/ui-build-check
Open

feat: add UI Build Artifacts Check workflow#1229
agiannelli-auth0 wants to merge 5 commits into
mainfrom
chore/ui-build-check

Conversation

@agiannelli-auth0
Copy link
Copy Markdown
Contributor

@agiannelli-auth0 agiannelli-auth0 commented May 19, 2026

Description

PRs that change ui/src/ or universal-components/src/ sometimes land without the corresponding built artifacts in main/ui/, because contributors aren't always aware that copy-build.sh needs to be run and committed.

This adds a GitHub Actions workflow that fails the PR if source changes are detected without matching artifact updates, and prints the exact command to fix it.

What the check does:

  • If ui/src/** changed but main/ui/auth0-docs-ui-* didn't → fail
  • If universal-components/src/** changed but main/ui/universal-components/** didn't → fail
  • Skips on draft PRs
  • Prints an ::error:: annotation with the command to run (cd ui && npm run copy:build or cd universal-components && pnpm run copy:assets)

In addition, build scripts (copy-build.sh, build-all.sh) now automatically bump the patch version in package.json before each build, unless the version was already manually changed since the last commit — preventing accidental double-bumps when a contributor intentionally sets a minor or major version.

References

Internal optimization

Testing

Checklist

  • I've read and followed CONTRIBUTING.md.
  • I've tested the site build for this change locally.
  • I've made appropriate docs updates for any code or config changes.
  • I've coordinated with the Product Docs and/or Docs Management team about non-trivial changes.

@agiannelli-auth0 agiannelli-auth0 requested review from a team as code owners May 19, 2026 20:43
@agiannelli-auth0 agiannelli-auth0 marked this pull request as draft May 19, 2026 20:44
@agiannelli-auth0 agiannelli-auth0 self-assigned this May 19, 2026
@agiannelli-auth0 agiannelli-auth0 marked this pull request as ready for review May 20, 2026 15:39
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

mikemimik
mikemimik previously approved these changes May 21, 2026
Comment thread ui/scripts/copy-build.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants