chore: migrate Changesets to v3 #83
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| changeset: | |
| name: Changeset present for published package changes | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Enforce release intent | |
| # The repository owner publishes this versioned shared contract. | |
| uses: stella/.github/.github/actions/changeset-policy@5dafee16c28009f17d3bc088f8aecdf9ce47a6d5 | |
| with: | |
| release-paths: | | |
| packages/typescript-config/** | |
| packages/oxlint-config/** | |
| packages/oxlint-plugin/** | |
| generated-paths: | | |
| bun.lock | |
| packages/typescript-config/CHANGELOG.md | |
| packages/typescript-config/package.json | |
| packages/oxlint-config/CHANGELOG.md | |
| packages/oxlint-config/package.json | |
| packages/oxlint-plugin/CHANGELOG.md | |
| packages/oxlint-plugin/package.json | |
| package-files: | | |
| packages/typescript-config/package.json | |
| packages/oxlint-config/package.json | |
| packages/oxlint-plugin/package.json | |
| version-file: bun.lock | |
| checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Node | |
| uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: 22.18.0 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| with: | |
| bun-version: 1.4.0 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| # Bun validates the resolved graph but does not refresh or validate cached | |
| # workspace self-versions. Release automation uses this same script in | |
| # byte-preserving --write mode; CI keeps it in check-only mode. | |
| - name: Lockfile workspace-version check | |
| run: bun run check:lockfile-versions | |
| - name: Typecheck | |
| run: bun run typecheck | |
| - name: Test | |
| run: bun run test | |
| - name: Lint | |
| run: bun run lint | |
| - name: Publint | |
| run: bun run publint | |
| - name: Pack dry run | |
| run: bun run pack:dry-run | |
| rust-lints: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install Rust lint toolchain | |
| run: | | |
| rustup toolchain install nightly-2026-04-16 --profile minimal \ | |
| --component rustc-dev \ | |
| --component llvm-tools-preview | |
| cargo install dylint-link --version 6.0.1 --locked | |
| - name: Test Rust lints | |
| run: cd rust-lints/stella_lints && cargo test |