feat(cli): flag dominant operations and clean labels in colony gain…
#552
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: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| registry-url: 'https://registry.npmjs.org' | |
| - run: pnpm install --frozen-lockfile | |
| # Build first — every package's exports point to ./dist/, and the unit | |
| # tests that import workspace packages (mcp-server, worker, hooks, cli) | |
| # need those dists to exist. | |
| - run: pnpm build | |
| - run: pnpm typecheck | |
| - run: pnpm lint | |
| - run: pnpm test | |
| # End-to-end check of the actual published artifact: pack, install -g | |
| # into an isolated prefix, drive every hook event, verify MCP launches, | |
| # confirm better-sqlite3 loads. Catches the things unit tests cannot. | |
| - run: bash scripts/e2e-publish.sh | |
| - uses: changesets/action@v1 | |
| with: | |
| publish: pnpm release | |
| version: pnpm changeset version | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN || secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |