swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(ci): install rustfmt before tagging releases (#12632) **Description:** Release tagging fails when `scripts/publish.sh` pushes its commits: the pre-push hook runs `cargo fmt`, but the repository toolchain has no rustfmt component installed. Install the pinned repository Rust toolchain with rustfmt in the shared tag action before publication. This covers both nightly and stable tags and keeps the formatting hook enabled. Add a workflow regression test that checks the component, toolchain, and setup order, plus a patch changeset consistent with the existing release CI fix. Validation of the action and regression test changes: - `node --test scripts/native/workflow.test.mjs` — passed all 9 tests. - `cargo fmt --all` — passed. - `cargo clippy --all --all-targets -- -D warnings` — passed. The release workflow was not dispatched locally; CI for this PR is separate from these local results. **Related issue (if exists):** Failed workflow attempt: https://github.com/swc-project/swc/actions/runs/41033105358/attempts/1
main
4 hours ago
chore: Add changeset
kdy1/fix-failing-github-action
5 hours ago
chore: Publish crates
kdy1/retry-crate-publication
6 hours ago
ci: install rustfmt for automatic crate releases (#12630) **Description:** <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> Automatic crate publication fails when `update-constants.ts` commits the `swc_core` diagnostics SHA. The pre-commit hook runs `cargo fmt` with the repository's `nightly-2026-04-10` toolchain, but the workflow installs only stable Rust and does not install rustfmt for the repository toolchain. Install `nightly-2026-04-10` with the `rustfmt` component before updating the constants. Include a `swc_core` patch changeset for the release workflow fix. Local validation passed for this change: - `actionlint -shellcheck= .github/workflows/publish-crates.yml` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` - `git diff --check` The crates.io publication was not run locally. CI and review results are pending. **Related issue (if exists):** Failed job: https://github.com/swc-project/swc/actions/runs/41024900503/job/123960574455
main
6 hours ago
fix(ci): install rustfmt for automatic crate releases
kdy1/fix-ci-workflow
6 hours ago
ci: install rustfmt for manual crate releases (#12629) <!-- Note: CI script will automatically rebase your PR so please do not rebase unless required --> <!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **Description:** The manual crate release failed when the pre-push hook ran `cargo fmt`: `rustfmt` was missing from the repository toolchain. Use `nightly-2026-04-10`, matching `rust-toolchain`, and explicitly install `rustfmt` so the release commit can pass the hook. Add a patch changeset for `swc_core` to record the release workflow fix. Validation of the intended changes: - `cargo fmt --all` passed. - `cargo clippy --all --all-targets -- -D warnings` passed. - `cargo test -p swc-releaser --test changesets` passed after the changeset was finalized. - Parsed the workflow and verified that its toolchain matches `rust-toolchain` and includes `rustfmt`. The publishing workflow was not run locally. CI and review are pending. **Related issue (if exists):** Failed job: https://github.com/swc-project/swc/actions/runs/41019615453/job/123943712605
main
6 hours ago
chore: associate release workflow changeset with swc_core
kdy1/fix-ci-job-failure
6 hours ago
chore: prepare Anthropic OSS Scanner audits
t3/oss-scanner
11 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(ci): install rustfmt before tagging releases
#12632
5 hours ago
b61bf4c
kdy1/fix-failing-github-action
CodSpeed Performance Gauge
0%
chore: Publish crates
#12631
6 hours ago
992220e
kdy1/retry-crate-publication
CodSpeed Performance Gauge
-2%
ci: install rustfmt for automatic crate releases
#12630
6 hours ago
dcfe89a
kdy1/fix-ci-workflow
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs