diff --git a/.changeset/fluffy-jeans-cheat.md b/.changeset/fluffy-jeans-cheat.md new file mode 100644 index 000000000000..a845151cc840 --- /dev/null +++ b/.changeset/fluffy-jeans-cheat.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index ce63283e0678..bf93c0040cc9 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -13,8 +13,6 @@ on: - "Cargo.lock" - "rust-toolchain.toml" - "rustfmt.toml" - # Needed for auto fixing rule versions - - "packages/@biomejs/biome/package.json" permissions: contents: read @@ -55,19 +53,3 @@ jobs: taplo format - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 - autofix-rule-versions: - runs-on: depot-ubuntu-24.04-arm-4 - if: "github.event.pull_request.title == 'ci: release'" - steps: - - name: Checkout branch - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 - - - run: | - sudo apt-get update - sudo apt-get install ripgrep - - - name: Update rule versions - run: | - scripts/update-next-version.sh --replace "$(jq --raw-output .version packages/@biomejs/biome/package.json)" - - - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f64f1f7f496e..6f9167b8610f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,6 +42,19 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Update rule version metadata + run: | + sudo apt-get update + sudo apt-get install -y ripgrep + pnpm exec changeset status --output="changeset_status.json" + NEW_VERSION=$(jq -r '.releases[] | select(.name=="@biomejs/biome") | .newVersion' changeset_status.json) + rm changeset_status.json + if [ -z "$NEW_VERSION" ]; then + echo "No new @biomejs/biome version detected; skipping rule version metadata update." + exit 0 + fi + scripts/update-next-version.sh --replace "$NEW_VERSION" + - name: Create Release Pull Request id: changesets-action uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3 @@ -275,7 +288,6 @@ jobs: restore-keys: | ${{ runner.os }}- - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - - name: Compile backends run: | pnpm --filter @biomejs/js-api run build:wasm-bundler @@ -329,7 +341,7 @@ jobs: uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: 20.19.4 - registry-url: 'https://registry.npmjs.org' + registry-url: "https://registry.npmjs.org" - name: Install pnpm run: | @@ -412,7 +424,7 @@ jobs: uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: 20.19.4 - registry-url: 'https://registry.npmjs.org' + registry-url: "https://registry.npmjs.org" - name: Install pnpm run: |