Commit 9c3c8dc
authored
ci: build fixes, --noEmit tsc, Dependabot and publish on any push to production (#8)
* ci: add CI workflow with type check, build, verify and dry-run publish
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: replace yarn run -T with npx tsc and fix implicit any type errors
- 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
* ci: add Dependabot for npm and GitHub Actions weekly updates
* fix: remove stale compiled JS files from src and ignore them in .gitignore
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.
* fix: add --noEmit to tsc type-check scripts to prevent JS file generation
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.
* ci: prevent double CI run on PR branches
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.
* chore: bump version to 1.0.0 and complete package.json metadata
- Version 1.0.0 (initial public release)
- Add description, keywords, repository, bugs and homepage fields
- Set strapi.displayName to 'Form Builder CMS'
* chore: set version to 1.0.0-alpha.1 and auto-tag alpha/beta/rc on publish
* ci: trigger publish on any push to production, not only PR merges1 parent 1b76ee4 commit 9c3c8dc
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | | - | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
60 | | - | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
0 commit comments