Skip to content

chore(kit): add CI, npm publishing and migration docs - #15

Draft
djanhjo wants to merge 3 commits into
inapp-15336-kitfrom
inapp-15336-ci
Draft

djanhjo wants to merge 3 commits into
inapp-15336-kitfrom
inapp-15336-ci

Conversation

@djanhjo

@djanhjo djanhjo commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Part of INAPP-15336. Builds on the function kit PR #14 (inapp-15336-kit).

CI and publishing

  • kit-test.yml: runs npm ci, the build and the tests for kits/** on Node 22 and 24.
  • publish.yml: release-please plus npm trusted publishing with provenance, copied from customerio-node's setup.
    • Release-please runs in manifest mode and only versions kits/sync-customerio, with tags like sync-customerio-kit-v0.1.0.
    • Releases publish to the next dist-tag (from publishConfig). Promote with npm dist-tag add @customerio/sync-customerio@<version> latest after verifying.
  • Versioning: the package version starts at 0.0.0 and the CHANGELOG is left for release-please to generate. The first release-please PR should bump the kit to 0.1.0.

Migration docs (merged in from #16)

  • Kit README: adds migration steps from the extension.
    1. Check REGION.
    2. Run firebase ext:migrate and keep the extension installed until the kit is verified.
    3. Verify in the Customer.io Activity Logs.
    4. Uninstall the extension.
      It also covers rolling back.
  • sync-customerio/README.md: adds the replacement marker Firebase scans for, which lists our kit in the "Replacement Kit" column of firebase ext:list, plus a deprecation notice under the title:
    <!-- FIREBASE_EXTENSION_REPLACEMENT: extension="customerio/sync-customerio" package="@customerio/sync-customerio" -->
  • Root README: adds the deprecation notice.

Before merging

  • The @customerio npm org already exists; whoever publishes the first version needs write access to it.
  • npm trusted publishing can only be configured on a package that exists, so the first publish needs a token. After that, add this repo's publish.yml as the package's trusted publisher.

Open question

Firebase's docs don't say whether they read the marker from the repo or from the published extension. If they read the published extension, we'll need to republish the extension with this README.

Testing

  • Ran CI's steps locally from a clean npm ci: build passes, 19 tests passing.
  • Both workflow files parse as valid YAML.

@djanhjo djanhjo changed the title chore(kit): add CI tests and release-please npm publishing chore(kit): add CI, npm publishing and migration docs Nov 25, 2026
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