Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,41 @@
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 }}
sha: ${{ steps.release.outputs.sha }}
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:
# 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
Comment thread
sydneycollins-cio marked this conversation as resolved.
with:
ref: ${{ needs.release-please.outputs.sha || github.sha }}

- name: setup node
uses: actions/setup-node@v6
Expand Down
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "5.3.0"
}
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '5.2.0';
export const version = '5.2.0'; // x-release-please-version
10 changes: 10 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -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"]
}
}
}
6 changes: 5 additions & 1 deletion scripts/sync-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
);
Loading