Skip to content

ci: build fixes, --noEmit tsc, Dependabot and publish on any push to production#8

Merged
devCluna merged 10 commits into
productionfrom
main
Apr 4, 2026
Merged

ci: build fixes, --noEmit tsc, Dependabot and publish on any push to production#8
devCluna merged 10 commits into
productionfrom
main

Conversation

@devCluna
Copy link
Copy Markdown
Owner

@devCluna devCluna commented Apr 4, 2026

Summary

  • Fix CI double-run by scoping push trigger to protected branches only
  • Fix --noEmit on tsc scripts to prevent in-place JS file generation
  • Remove stale compiled .js files from server/src/
  • Replace yarn run -T syntax with npx tsc
  • Add Dependabot for weekly npm and GitHub Actions updates
  • Add CI workflow
  • Trigger publish on any push to production (not only PR merges)

devCluna added 9 commits April 3, 2026 21:05
Runs on every push and PR across all branches. Checks:
- TypeScript (server + admin)
- Build
- Strapi plugin verify
- Version not already published on npm
- Dry run publish

publish.yml now requires CI to pass before publishing to npm.
- Fix test:ts:front and test:ts:back scripts to use npx tsc (was yarn-only syntax)
- Add explicit types for implicit any parameters caught by the type check:
  MouseEvent on DropZone drag handle click
  boolean on Modal.Root onOpenChange in EmbedModal and FormPreview
  string | number on SingleSelect onChange in FieldSettingsPanel and SubmissionsPage
…gnore

Rollup was resolving register.js (and other compiled .js files) instead
of the .ts sources, causing 'default is not exported' build failures in CI.
Deleted all .js artifacts from server/src and admin/src and added them
to .gitignore so they are never committed again.
…tion

Without --noEmit, tsc outputs .js files next to the .ts sources.
Rollup then resolves the CJS .js files instead of the .ts sources and
fails with 'default is not exported' on the CommonJS interop boundary.
Push trigger now only fires on main, development and production.
Feature branches are covered by the pull_request trigger alone,
so CI no longer runs twice when pushing to an open PR.
- Version 1.0.0 (initial public release)
- Add description, keywords, repository, bugs and homepage fields
- Set strapi.displayName to 'Form Builder CMS'
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 4, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 50c51923-ffa1-4383-a421-1f5a205c8c6b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch main

Comment @coderabbitai help to get the list of available commands and usage tips.

@devCluna devCluna merged commit 9c3c8dc into production Apr 4, 2026
4 checks passed
@devCluna devCluna deleted the main branch April 4, 2026 02:52
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.

1 participant