Skip to content

Merge pull request #6 from antlio/anthony/feat-card-update #32

Merge pull request #6 from antlio/anthony/feat-card-update

Merge pull request #6 from antlio/anthony/feat-card-update #32

Workflow file for this run

name: Release
on:
push:
branches: [main]
concurrency:
group: release
cancel-in-progress: false
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
# mint a token for the agentimization GitHub App so the release pr and
# version commit are authored by the bot instead of github-actions[bot]
- uses: actions/create-github-app-token@v3
id: app-token
with:
client-id: ${{ secrets.AGENTIMIZATION_APP_CLIENT_ID }}
private-key: ${{ secrets.AGENTIMIZATION_APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
- name: Upgrade npm for OIDC trusted publishing
run: npm install -g npm@latest
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install --frozen-lockfile
- name: Build shared
run: cd packages/shared && bunx tsc
- run: bun install --frozen-lockfile
- name: Build core
run: cd packages/core && bunx tsup
- run: bun install --frozen-lockfile
- name: Build cli
run: cd apps/cli && bunx tsup
- run: bun install --frozen-lockfile
- name: Create release pull request or publish
uses: changesets/action@v1
with:
publish: npx -y changeset publish
version: npx -y changeset version
commit: "chore: version packages"
title: "chore: version packages"
# author the version commit + pr as the agentimization app
github-token: ${{ steps.app-token.outputs.token }}
setupGitUser: false
commitMode: "github-api"