agent-harness-fixtures-v0.1.0 #54
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |