Prepare for using cargo-release

This commit is contained in:
mo8it 2024-04-25 19:02:07 +02:00
parent 177e2870c5
commit ca41f9e2df
5 changed files with 26 additions and 4 deletions

7
.typos.toml Normal file
View file

@ -0,0 +1,7 @@
[files]
extend-exclude = [
"CHANGELOG.md",
]
[default.extend-words]
"ratatui" = "ratatui"

4
Cargo.lock generated
View file

@ -679,7 +679,7 @@ dependencies = [
[[package]] [[package]]
name = "rustlings" name = "rustlings"
version = "6.0.0-beta.0" version = "6.0.0-alpha.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"assert_cmd", "assert_cmd",
@ -698,7 +698,7 @@ dependencies = [
[[package]] [[package]]
name = "rustlings-macros" name = "rustlings-macros"
version = "6.0.0-beta.0" version = "6.0.0-alpha.0"
dependencies = [ dependencies = [
"quote", "quote",
"serde", "serde",

View file

@ -8,7 +8,7 @@ exclude = [
] ]
[workspace.package] [workspace.package]
version = "6.0.0-beta.0" version = "6.0.0-alpha.0"
authors = [ authors = [
"Liv <mokou@fastmail.com>", "Liv <mokou@fastmail.com>",
"Mo Bitar <mo8it@proton.me>", "Mo Bitar <mo8it@proton.me>",
@ -41,6 +41,7 @@ include = [
"/info.toml", "/info.toml",
"/LICENSE", "/LICENSE",
"/README.md", "/README.md",
"/solutions/",
"/src/", "/src/",
] ]
@ -52,7 +53,7 @@ hashbrown = "0.14.3"
notify-debouncer-mini = "0.4.1" notify-debouncer-mini = "0.4.1"
os_pipe = "1.1.5" os_pipe = "1.1.5"
ratatui = "0.26.2" ratatui = "0.26.2"
rustlings-macros = { path = "rustlings-macros", version = "6.0.0-beta.0" } rustlings-macros = { path = "rustlings-macros", version = "=6.0.0-alpha.0" }
serde.workspace = true serde.workspace = true
toml_edit.workspace = true toml_edit.workspace = true
which = "6.0.1" which = "6.0.1"
@ -66,3 +67,6 @@ panic = "abort"
[profile.dev] [profile.dev]
panic = "abort" panic = "abort"
[package.metadata.release]
pre-release-hook = ["./release-hook.sh"]

8
release-hook.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
# Error out if any command fails
set -e
typos
cargo outdated -w --exit-code 1
cargo test --workspace --all-targets

View file

@ -14,3 +14,6 @@ proc-macro = true
quote = "1.0.36" quote = "1.0.36"
serde.workspace = true serde.workspace = true
toml_edit.workspace = true toml_edit.workspace = true
[package.metadata.release]
verify = false