Skip to content

iso-trace-v0.5.1

iso-trace-v0.5.1 #51

name: create-agent-harness Release to npm
on:
release:
types: [published]
defaults:
run:
working-directory: packages/create-agent-harness
jobs:
publish:
if: startsWith(github.ref_name, 'create-agent-harness-v')
runs-on: ubuntu-latest
permissions:
contents: read
checks: read
id-token: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Set version from release tag
run: |
VERSION="${GITHUB_REF_NAME#create-agent-harness-v}"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Verify required CI passed for release commit
uses: ./.github/actions/verify-release-gate
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Verify package.json version matches release tag
run: npm run release:check-source -- "$VERSION"
- name: Install (workspace root)
run: npm ci
working-directory: .
- name: Publish to npm (with provenance)
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}