docs(agents): document anthropic provider credential/model resolution #23
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ["v*"] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Test (node ${{ matrix.node }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: ["20", "22"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node ${{ matrix.node }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Syntax check core scripts | |
| run: | | |
| node --check scripts/compact-full-transcript.mjs | |
| node --check scripts/patcher/patch-claude.mjs | |
| node --check scripts/patcher/run-compact.mjs | |
| node --check scripts/cli.mjs | |
| node --check scripts/install.mjs | |
| - name: Run test gate | |
| run: npm test | |
| env: | |
| # The patcher-anchor test reads ~/.local/share/claude/versions/*.original | |
| # backups; in CI those won't exist, so it skips gracefully. | |
| CI: "true" | |
| publish: | |
| name: Publish to npm (trusted publishing / OIDC) | |
| needs: test | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| registry-url: https://registry.npmjs.org | |
| - name: Ensure npm CLI supports trusted publishing (>= 11.5.1) | |
| run: npm install -g npm@latest | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Verify package contents | |
| run: npm pack --dry-run | |
| # Trusted publishing: GitHub proves this workflow's identity to npm via a | |
| # short-lived OIDC JWT; npm issues a single-use publish credential. No | |
| # NPM_TOKEN, no NODE_AUTH_TOKEN, no long-lived secret to rotate. Requires | |
| # a one-time trust config at https://www.npmjs.com/package/patchpress/access | |
| # (owner=jaredboynton, repo=patchpress, workflow=ci.yml). Provenance is | |
| # auto-generated; publishConfig.provenance:true makes intent explicit. | |
| - name: Publish | |
| run: npm publish --access public |