test: migrate references from git-agent to ai-commit #9
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: Release | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| packages: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: "24.x" | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Setup jj | |
| env: | |
| JJ_VERSION: "0.39.0" | |
| run: | | |
| case "$(uname -m)" in | |
| x86_64) jj_arch="x86_64-unknown-linux-musl" ;; | |
| aarch64|arm64) jj_arch="aarch64-unknown-linux-musl" ;; | |
| *) | |
| echo "Unsupported architecture: $(uname -m)" >&2 | |
| exit 1 | |
| ;; | |
| esac | |
| tmpdir="$(mktemp -d)" | |
| trap 'rm -rf "$tmpdir"' EXIT | |
| curl -fsSL "https://github.com/jj-vcs/jj/releases/download/v${JJ_VERSION}/jj-v${JJ_VERSION}-${jj_arch}.tar.gz" \ | |
| | tar -xz -C "$tmpdir" | |
| sudo install -m 0755 "$tmpdir/jj" /usr/local/bin/jj | |
| jj --version | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Check and build | |
| run: bun run check | |
| - name: Create release pull request or publish | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: changesets/action@v1 | |
| with: | |
| version: bun run version-packages | |
| publish: bun run release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_CONFIG_PROVENANCE: "true" |