From 911f96946043f016204ee9ae61b1261275d5a017 Mon Sep 17 00:00:00 2001 From: sydneycollins-cio <149523950+sydneycollins-cio@users.noreply.github.com> Date: Fri, 23 Oct 2026 10:14:56 -0400 Subject: [PATCH 1/3] ci: release with release-please (MBL-2633) Co-Authored-By: Claude Opus 5.5 --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++---- .release-please-manifest.json | 3 +++ CHANGELOG.md | 12 ++++++++++++ lib/version.ts | 2 +- release-please-config.json | 10 ++++++++++ scripts/sync-version.js | 6 +++++- 6 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a2880e1..96fb76b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,16 +1,34 @@ name: publish on: + push: + branches: [main] release: types: [published] -permissions: - contents: read - id-token: write - jobs: + release-please: + if: github.event_name == 'push' + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + outputs: + release_created: ${{ steps.release.outputs.release_created }} + steps: + - id: release + uses: googleapis/release-please-action@v5 + + # Publishing lives in this file because npm trusted publishing is bound to + # publish.yml. A release created by release-please with GITHUB_TOKEN does not + # fire the `release` event, so the push run publishes it here instead. publish: + needs: release-please + if: ${{ !cancelled() && (github.event_name == 'release' || needs.release-please.outputs.release_created == 'true') }} runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v6 diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..ce65b73 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "5.3.0" +} diff --git a/CHANGELOG.md b/CHANGELOG.md index fe1f554..79fbe11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ All notable changes to this project will be documented in this file. +## [5.3.0] + +Tagged on GitHub but never published to npm, because `package.json` was not bumped before the release. These changes ship to npm in the next release. + +#### Added + +- **`cc`** on transactional email requests. ([#247](https://github.com/customerio/customerio-node/pull/247)) + +#### Fixed + +- **`SendWhatsAppRequest`** no longer sends a `from` field. ([#250](https://github.com/customerio/customerio-node/pull/250)) + ## [5.2.0] This release completes the App API surface: `APIClient` now covers the full Customer.io [Journeys App API](https://docs.customer.io/api/app/). Every endpoint was verified against the live API behavior, with unit and live integration coverage. diff --git a/lib/version.ts b/lib/version.ts index 6f577f9..b890778 100644 --- a/lib/version.ts +++ b/lib/version.ts @@ -1 +1 @@ -export const version = '5.2.0'; +export const version = '5.2.0'; // x-release-please-version diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..5ddaab4 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "packages": { + ".": { + "release-type": "node", + "include-component-in-tag": false, + "extra-files": ["lib/version.ts"] + } + } +} diff --git a/scripts/sync-version.js b/scripts/sync-version.js index 6414f46..4d2e93b 100644 --- a/scripts/sync-version.js +++ b/scripts/sync-version.js @@ -2,4 +2,8 @@ const { version } = require('../package.json'); const { resolve } = require('path'); const { writeFileSync } = require('fs'); -writeFileSync(resolve(__dirname, '..', 'lib', 'version.ts'), `export const version = '${version}';\n`); +// The marker lets release-please bump this file in its release PR. +writeFileSync( + resolve(__dirname, '..', 'lib', 'version.ts'), + `export const version = '${version}'; // x-release-please-version\n`, +); From 51a48916f983ae7a96562f4cec54c324c5e08025 Mon Sep 17 00:00:00 2001 From: sydneycollins-cio <149523950+sydneycollins-cio@users.noreply.github.com> Date: Mon, 26 Oct 2026 10:36:57 -0400 Subject: [PATCH 2/3] ci: publish the commit release-please tagged Co-Authored-By: Claude Opus 5.5 --- .github/workflows/publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 96fb76b..7672876 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,6 +15,7 @@ jobs: pull-requests: write outputs: release_created: ${{ steps.release.outputs.release_created }} + sha: ${{ steps.release.outputs.sha }} steps: - id: release uses: googleapis/release-please-action@v5 @@ -30,7 +31,11 @@ jobs: contents: read id-token: write steps: + # Overlapping pushes can make a later run create an earlier release, so + # build the tagged commit rather than the commit that triggered this run. - uses: actions/checkout@v6 + with: + ref: ${{ needs.release-please.outputs.sha }} - name: setup node uses: actions/setup-node@v6 From 182e05466f0fb34e138750f06d4fd101a0eab9d8 Mon Sep 17 00:00:00 2001 From: sydneycollins-cio <149523950+sydneycollins-cio@users.noreply.github.com> Date: Mon, 26 Oct 2026 11:18:17 -0400 Subject: [PATCH 3/3] ci: fall back to the release commit on manual releases Co-Authored-By: Claude Opus 5.5 --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7672876..45e016c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,7 +35,7 @@ jobs: # build the tagged commit rather than the commit that triggered this run. - uses: actions/checkout@v6 with: - ref: ${{ needs.release-please.outputs.sha }} + ref: ${{ needs.release-please.outputs.sha || github.sha }} - name: setup node uses: actions/setup-node@v6