From 3f02e2bcadee14c5a78793c31f7a32341def9a95 Mon Sep 17 00:00:00 2001 From: Bjarn Bronsveld Date: Sat, 19 Sep 2026 20:50:11 +0200 Subject: [PATCH 1/2] ci: use SDK release bot for changelog --- .github/workflows/release.yaml | 2 + .github/workflows/update-changelog.yml | 63 +++++++++++++++++++++++--- 2 files changed, 58 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 19b328d..2cb4970 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -82,6 +82,8 @@ jobs: contents: write pull-requests: write uses: ./.github/workflows/update-changelog.yml + secrets: + release_app_private_key: ${{ secrets.LETTERMINT_RELEASE_APP_PRIVATE_KEY }} discord: needs: release diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index 7c5cf82..8fd1f6d 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -2,6 +2,9 @@ name: Update Changelog and Version on: workflow_call: + secrets: + release_app_private_key: + required: true permissions: contents: write @@ -13,10 +16,21 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - name: Create release bot token + id: release-bot + uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 + with: + app-id: ${{ vars.LETTERMINT_RELEASE_APP_ID }} + private-key: ${{ secrets.release_app_private_key }} + owner: ${{ github.repository_owner }} + repositories: ${{ github.event.repository.name }} + permission-contents: write + - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: ref: ${{ github.event.repository.default_branch }} + token: ${{ steps.release-bot.outputs.token }} - name: Setup Node.js uses: actions/setup-node@v4 @@ -29,19 +43,54 @@ jobs: run: npm version "${RELEASE_TAG#v}" --no-git-tag-version --allow-same-version --ignore-scripts - name: Update changelog from release notes - uses: stefanzweifel/changelog-updater-action@v1 + uses: stefanzweifel/changelog-updater-action@a938690fad7edf25368f37e43a1ed1b34303eb36 # v1 with: latest-version: ${{ github.event.release.tag_name }} release-notes: ${{ github.event.release.body }} - - name: Open release update pull request + - name: Verify changed paths + shell: bash + run: | + for path in CHANGELOG.md package.json package-lock.json; do + test -f "$path" + test ! -L "$path" + done + + mapfile -t changed_paths < <(git status --porcelain=v1 --untracked-files=all | cut -c4-) + for path in "${changed_paths[@]}"; do + case "$path" in + CHANGELOG.md|package.json|package-lock.json) ;; + *) + echo "Unexpected changed path: $path" >&2 + exit 1 + ;; + esac + done + + - name: Commit updated changelog + shell: bash + env: + DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} + run: | + if git diff --quiet -- CHANGELOG.md; then + echo "CHANGELOG.md is already current." + exit 0 + fi + + git config user.name "lettermint-sdk-release-bot[bot]" + git config user.email "331370748+lettermint-sdk-release-bot[bot]@users.noreply.github.com" + git add -- CHANGELOG.md + git commit -m "Update CHANGELOG" + git push origin "HEAD:${DEFAULT_BRANCH}" + + - name: Open package version pull request uses: peter-evans/create-pull-request@v8 with: + token: ${{ github.token }} branch: automation/update-changelog - commit-message: Update changelog and package version - title: Update changelog and package version - body: Update CHANGELOG.md, package.json, and package-lock.json for the published release. + commit-message: Update package version + title: Update package version + body: Update package.json and package-lock.json for the published release. add-paths: | - CHANGELOG.md package.json package-lock.json From 614cfc655aa16c60b8a61e1d3339dd2e1a529350 Mon Sep 17 00:00:00 2001 From: Bjarn Bronsveld Date: Sat, 19 Sep 2026 21:08:05 +0200 Subject: [PATCH 2/2] docs: backfill release changelog --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16e5062..84c94ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +# [2.7.0](https://github.com/lettermint/lettermint-node/compare/v2.6.0...v2.7.0) (2026-09-14) + + +### What's Changed + +* ci: publish Node SDK from GitHub releases by @bjarn in https://github.com/lettermint/lettermint-node/pull/27 +* feat: add typed message tags by @bjarn in https://github.com/lettermint/lettermint-node/pull/28 +* chore: add all team as code owners by @bjarn in https://github.com/lettermint/lettermint-node/pull/29 + +**Full Changelog**: https://github.com/lettermint/lettermint-node/compare/v2.6.0...v2.7.0 + # [2.6.0](https://github.com/lettermint/lettermint-node/compare/v2.5.0...v2.6.0) (2026-09-07)