Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/publish-crates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish to crates.io
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
environment: crate-publish
permissions:
id-token: write # Required for OIDC token exchange
steps:
- uses: actions/checkout@v5
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- run: cargo publish --workspace
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
3 changes: 2 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ This document is meant to explain the release process of Biome, and hopefully an

The team doesn't provide ETAs (Estimated Time of Arrival). The team believes that enforcing deadlines to a group of volunteers is counterproductive, and can have negative effects on people.

## Prerelease
## `npm` packages

### Prerelease

We publish pre-releases of the main `@biomejs/biome` package twice a week. These releases are built from `main`, they are meant for testing and verify that bugs are fixed.

Expand All @@ -13,16 +15,26 @@ These releases are published to `pkg.pr.new`, and an automated message is sent o
> [!WARNING]
> **Don't** use prerelease in **production**. Artifacts in `pkg.pr.new` are purged after roughly 30 days.

## Beta release
### Beta release

Beta releases are published manually by the [Core Contributors team](/GOVERNANCE.md#core-contributor), only this team has the rights to publish these releases.

These releases can be released on request, usually right before a stable release.

Beta releases are published on GitHub, and `npmjs.org` under the `beta` tag.

## Stable release
### Stable release

Beta releases are published manually by the [Core Contributors team](/GOVERNANCE.md#core-contributor), only this team has the rights to publish these releases.

Stable releases are published on GitHub, and `npmjs.org` under the `latest` tag.


## Crates

The Biome internal crates are published on `crates.io` on demand to avoid too much work on our end.
You can reach us out on [discord](https://biomejs.dev/chat) if you require a version of the crates to be published.

As for now, no changelogs or tags are published when new crates are released.

All Biome crates are published under a one single version.
1 change: 1 addition & 0 deletions crates/biome_analyze/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_analyze"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_aria/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_aria"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_aria_metadata/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_aria_metadata"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
3 changes: 3 additions & 0 deletions crates/biome_configuration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_configuration"
publish = false
repository.workspace = true
version = "0.0.1"

Expand All @@ -27,6 +28,7 @@ biome_js_formatter = { workspace = true, features = ["serde"] }
biome_json_formatter = { workspace = true, features = ["serde"] }
biome_json_parser = { workspace = true }
biome_json_syntax = { workspace = true }
biome_plugin_loader = { workspace = true }
biome_resolver = { workspace = true }
biome_rowan = { workspace = true, features = ["serde"] }
biome_rule_options = { workspace = true }
Expand All @@ -48,6 +50,7 @@ schema = [
"biome_json_formatter/schema",
"biome_js_formatter/schema",
"biome_rule_options/schema",
"biome_plugin_loader/schema",
]

[dev-dependencies]
Expand Down
4 changes: 1 addition & 3 deletions crates/biome_configuration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ pub mod javascript;
pub mod json;
pub mod max_size;
mod overrides;
pub mod plugins;
pub mod vcs;

use crate::analyzer::assist::{Actions, AssistConfiguration, Source, assist_configuration};
Expand Down Expand Up @@ -63,7 +62,6 @@ pub use overrides::{
OverrideAssistConfiguration, OverrideFilesConfiguration, OverrideFormatterConfiguration,
OverrideGlobs, OverrideLinterConfiguration, OverridePattern, Overrides,
};
use plugins::Plugins;
use regex::Regex;
use serde::{Deserialize, Serialize};
use std::cmp::Ordering;
Expand Down Expand Up @@ -162,7 +160,7 @@ pub struct Configuration {
/// List of plugins to load.
#[bpaf(hide, pure(Default::default()))]
#[serde(skip_serializing_if = "Option::is_none")]
pub plugins: Option<Plugins>,
pub plugins: Option<biome_plugin_loader::Plugins>,

/// Specific configuration for assists
#[bpaf(external(assist_configuration), optional)]
Expand Down
2 changes: 1 addition & 1 deletion crates/biome_configuration/src/overrides.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::analyzer::{LinterEnabled, RuleDomains};
use crate::formatter::{FormatWithErrorsEnabled, FormatterEnabled};
use crate::html::HtmlConfiguration;
use crate::max_size::MaxSize;
use crate::plugins::Plugins;
use crate::{
CssConfiguration, GraphqlConfiguration, GritConfiguration, JsConfiguration, JsonConfiguration,
Rules,
Expand All @@ -13,6 +12,7 @@ use biome_formatter::{
AttributePosition, BracketSameLine, BracketSpacing, Expand, IndentStyle, IndentWidth,
LineEnding, LineWidth,
};
use biome_plugin_loader::Plugins;
use bpaf::Bpaf;
use serde::{Deserialize, Serialize};

Expand Down
1 change: 1 addition & 0 deletions crates/biome_console/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_console"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_control_flow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_control_flow"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_css_analyze/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_css_analyze"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_css_factory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_css_factory"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_css_formatter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_css_formatter"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_css_parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_css_parser"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_css_semantic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_css_semantic"
publish = true
repository.workspace = true
version = "0.0.0"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_css_syntax/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_css_syntax"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_deserialize/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_deserialize"
publish = true
repository.workspace = true
version = "0.6.0"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_deserialize_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_deserialize_macros"
publish = true
repository.workspace = true
version = "0.6.0"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_diagnostics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_diagnostics"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_diagnostics_categories/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_diagnostics_categories"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_diagnostics_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_diagnostics_macros"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_formatter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_formatter"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_fs"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_glob/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_glob"
publish = true
repository.workspace = true
version = "0.1.0"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_graphql_analyze/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_graphql_analyze"
publish = true
repository.workspace = true
version = "0.0.1"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_graphql_factory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_graphql_factory"
publish = true
repository.workspace = true
version = "0.1.0"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_graphql_formatter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_graphql_formatter"
publish = true
repository.workspace = true
version = "0.1.0"

Expand Down
2 changes: 2 additions & 0 deletions crates/biome_graphql_parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[package]
authors.workspace = true
categories.workspace = true
description = "Biome's GraphQL parser"
edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_graphql_parser"
publish = true
repository.workspace = true
version = "0.1.0"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_graphql_semantic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_graphql_semantic"
publish = true
repository.workspace = true
version = "0.0.0"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_graphql_syntax/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_graphql_syntax"
publish = true
repository.workspace = true
version = "0.1.0"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_grit_factory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ documentation = "https://docs.rs/biome_grit_factory"
edition.workspace = true
license.workspace = true
name = "biome_grit_factory"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_grit_formatter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_grit_formatter"
publish = true
repository.workspace = true
version = "0.0.0"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_grit_parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_grit_parser"
publish = true
repository.workspace = true
version = "0.1.0"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_grit_syntax/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_grit_syntax"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_html_factory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ documentation = "https://docs.rs/biome_html_factory"
edition.workspace = true
license.workspace = true
name = "biome_html_factory"
publish = true
repository.workspace = true
version = "0.5.7"

Expand Down
1 change: 1 addition & 0 deletions crates/biome_html_formatter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "biome_html_formatter"
publish = true
repository.workspace = true
version = "0.0.0"

Expand Down
Loading
Loading