Skip to content

feat: add agentic context fields to response types (#84) #22

feat: add agentic context fields to response types (#84)

feat: add agentic context fields to response types (#84) #22

Workflow file for this run

name: Release Management
on:
push:
branches:
- main
workflow_dispatch:
inputs:
ref:
description: Git ref to publish from
required: true
default: main
type: string
tag:
description: npm dist-tag for the beta publish
required: true
default: beta
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: false
jobs:
prepare-release:
if: github.event_name == 'push'
permissions:
contents: write
id-token: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22.12.0
cache: npm
cache-dependency-path: package-lock.json
registry-url: https://registry.npmjs.org
- name: Update npm for trusted publishing support
run: npm install --global npm@^11.5.2
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npm run format:check
- name: Typecheck
run: npm run typecheck
- name: Lint
run: npm run lint
- name: Run tests
run: npm run test:ci
- name: Build
run: npm run build
- name: Create release pull request or publish
uses: changesets/action@v1
with:
commit: Release package
createGithubReleases: false
publish: npm run release:publish
title: Release package
version: npm run release:version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-beta:
if: github.event_name == 'workflow_dispatch'
permissions:
contents: write
id-token: write
pull-requests: read
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ inputs.ref }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22.12.0
cache: npm
cache-dependency-path: package-lock.json
registry-url: https://registry.npmjs.org
- name: Update npm for trusted publishing support
run: npm install --global npm@^11.5.2
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npm run format:check
- name: Typecheck
run: npm run typecheck
- name: Lint
run: npm run lint
- name: Run tests
run: npm run test:ci
- name: Build
run: npm run build
- name: Publish beta snapshot
env:
BETA_DIST_TAG: ${{ inputs.tag }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release:beta