Integrate Kotlin multiplatform build with NPM publishing workflow#12
Closed
Copilot wants to merge 4 commits intocopilot/fix-68751953-ec1b-4f7f-baaf-bea86fb34a74from
Closed
Conversation
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] integrate kotlin and npm build workflows
Integrate Kotlin multiplatform build with NPM publishing workflow
Sep 29, 2025
Owner
|
see upstream changes to main for complete move from typescript to kotlin. please update and merge upstream. REMOVE ALL TYPESCRIPT @copilot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR integrates the existing Kotlin multiplatform build system with the NPM publishing workflow to ensure proper dependency order and unified CI/CD pipeline.
Problem
The repository has both Kotlin/JS code (compiled to JavaScript for Node.js) and TypeScript NPM packages, but they were built independently. The NPM publish workflow in
.github/workflows/publish-npm.ymldidn't include the Kotlin build step, meaning the Kotlin core library wasn't being built before the TypeScript packages that depend on it.Solution
Workflow Integration
Updated both publish and QA workflows to include Kotlin build steps:
./gradlew jsJarbefore TypeScript buildsBuild Pipeline
Created unified npm scripts that handle both Kotlin and TypeScript:
Publishing Order
Modified the version script to publish packages in proper dependency order:
@litlfred/fmlrunner-core(Kotlin/JS core)fmlrunner(main TypeScript library)fmlrunner-rest,fmlrunner-mcp(dependent packages)Package Configuration
Updated
packages/fmlrunner-kotlin-core/package.jsonto:dist/folderVerification
The integration works correctly as verified by:
Benefits
The integration maintains existing developer workflows while adding seamless Kotlin support, ensuring the Kotlin core library is always built and published before the NPM packages that consume it.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
scarf.shnode ./report.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.