fix: correct Claude Sonnet 4.5 model ID #86
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: Publish to npm | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - '**.md' | |
| - '.gitignore' | |
| - 'LICENSE' | |
| workflow_dispatch: # Allow manual triggering | |
| permissions: | |
| contents: write # Required to create releases | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| # Only run if commit message contains version bump | |
| if: "contains(github.event.head_commit.message, 'chore: release') || contains(github.event.head_commit.message, 'chore(release)')" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Run type check | |
| run: bun run typecheck | |
| - name: Run linter | |
| run: bun run lint | |
| continue-on-error: true # Don't fail if linting has warnings | |
| - name: Setup Node.js (for npm publish) | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Publish to npm | |
| run: npm publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Get version | |
| id: version | |
| run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: v${{ steps.version.outputs.version }} | |
| name: Release v${{ steps.version.outputs.version }} | |
| body: | | |
| Published version ${{ steps.version.outputs.version }} to npm | |
| ## Installation | |
| ```bash | |
| npm install -g @arvorco/relentless@${{ steps.version.outputs.version }} | |
| # or | |
| bun install -g @arvorco/relentless@${{ steps.version.outputs.version }} | |
| ``` | |
| ## What's Changed | |
| See commits since last release for details. | |
| draft: false | |
| prerelease: false |