Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

ci: use GitHub App token for the release bot (replaces expired CI_BOT_TOKEN) (#3539)

Rahul Tarak4abf06b23f1a
diff --git a/.github/workflows/ts.release.yml b/.github/workflows/ts.release.yml
index 6dd524d45..b0cfec1c4 100644
--- a/.github/workflows/ts.release.yml
+++ b/.github/workflows/ts.release.yml
@@ -5,18 +5,28 @@ on:
push:
branches: [next]
-env:
- GITHUB_ACCESS_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
-
jobs:
release:
name: Release Typescript SDK
runs-on: ubuntu-latest
steps:
+ # Mint a short-lived GitHub App installation token instead of a long-lived
+ # PAT. App tokens don't expire out from under us (the old CI_BOT_TOKEN PAT
+ # did), and — unlike the default GITHUB_TOKEN — events they create (the
+ # "Release: update version" PR and its eventual merge) still trigger
+ # downstream workflows like build-cli-binaries.yml, so publishing fires.
+ - name: Generate GitHub App token
+ id: app-token
+ uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
+ with:
+ app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
+ private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}
+
- name: Checkout Code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0 # Required for git show HEAD^ when comparing published package versions
+ token: ${{ steps.app-token.outputs.token }}
- name: Setup Node.js, pnpm, Bun
uses: ./.github/actions/setup-node-pnpm-bun
@@ -37,7 +47,8 @@ jobs:
uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
if: github.event_name != 'workflow_dispatch' # only run on master merges
env:
- GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
+ GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
+ GITHUB_ACCESS_TOKEN: ${{ steps.app-token.outputs.token }}
with:
publish: pnpm changeset:release
commit: 'Release: update version'