Skip to content

ci: fix publish workflow — inline CI steps, remove reusable workflow call#9

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

ci: fix publish workflow — inline CI steps, remove reusable workflow call#9
devCluna merged 11 commits into
productionfrom
main

Conversation

@devCluna
Copy link
Copy Markdown
Owner

@devCluna devCluna commented Apr 4, 2026

Fixes the 0s workflow file error on production push.

The reusable workflow call (uses: ./.github/workflows/ci.yml) conflicted with ci.yml also triggering independently on push to production. Inlined all CI steps directly into publish.yml.

devCluna added 10 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'
Calling ci.yml as a reusable workflow while it also triggers independently
on push to production caused a workflow file error (0s failure).
Inlined all CI steps directly into publish.yml to avoid the conflict.
@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: c76e4a05-1fa0-44d4-afd2-de08e27ce30c

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 dead148 into production Apr 4, 2026
4 checks passed
@devCluna devCluna deleted the main branch April 4, 2026 02:57
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