Skip to content

Support dynamic tool loading after tools exceed threshold (#22) #21

Support dynamic tool loading after tools exceed threshold (#22)

Support dynamic tool loading after tools exceed threshold (#22) #21

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
npm-release:
name: Release to npm
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
# Get GitHub token via the CT Changesets App
- name: Generate GitHub token (via CT Changesets App)
id: generate_github_token
uses: tibdex/github-app-token@v2.1.0
with:
app_id: ${{ secrets.CT_CHANGESETS_APP_ID }}
private_key: ${{ secrets.CT_CHANGESETS_APP_PEM }}
- name: Checkout
uses: actions/checkout@v4
with:
# Pass a personal access token (using our `ct-changesets` app) to be able to trigger other workflows
# https://help.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token
# https://github.community/t/action-does-not-trigger-another-on-push-tag-action/17148/8
token: ${{ steps.generate_github_token.outputs.token }}
- name: Setup
uses: ./.github/actions/setup
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
email=npmjs@commercetools.com
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build - TypeScript
run: pnpm --filter @commercetools/agent-essentials run build
- name: Build - Model Context Protocol
run: pnpm --filter @commercetools/mcp-essentials run build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
title: Pending Releases (aka Version Packages)
publish: pnpm changeset publish
version: pnpm changeset:version
commit: "ci(changesets): version packages"
env:
GITHUB_TOKEN: ${{ steps.generate_github_token.outputs.token }}