Skip to content

test: add tests for summarizeToolResult (#37) #31

test: add tests for summarizeToolResult (#37)

test: add tests for summarizeToolResult (#37) #31

Workflow file for this run

name: Release
on:
push:
branches:
- master
- "release/**"
workflow_dispatch:
permissions:
contents: write
id-token: write
pull-requests: write
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
release:
name: Version or publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Validate release candidate
run: |
pnpm typecheck
pnpm test
pnpm build
- name: Create release PR or publish
id: changesets
uses: changesets/action@v1
with:
version: pnpm changeset:version
publish: pnpm release
commit: "chore: version packages"
title: "chore: version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub release
if: steps.changesets.outputs.published == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
version=$(node -p "require('./package.json').version")
tag="v${version}"
notes="docs/releases/${tag}.md"
if gh release view "$tag" >/dev/null 2>&1; then
echo "GitHub release ${tag} already exists."
exit 0
fi
if [ -f "$notes" ]; then
gh release create "$tag" --target "$GITHUB_SHA" --title "Azoth ${tag}" --notes-file "$notes" --latest
else
gh release create "$tag" --target "$GITHUB_SHA" --title "Azoth ${tag}" --generate-notes --latest
fi