Skip to content

Commit

Permalink
feat: add xtasks to assist with bumping crates
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Feb 25, 2024
1 parent e01d833 commit 4e28804
Show file tree
Hide file tree
Showing 8 changed files with 463 additions and 64 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[alias]
xtask = "run --package xtask --"
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
toolchain: stable
override: true

- name: Publish CLI to Crates.io
- name: Publish crates to Crates.io
uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand All @@ -82,6 +82,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Build wasm
if: matrix.directory == 'lib/binding_web'
run: ./script/build-wasm

- name: Setup Node
uses: actions/setup-node@v4
with:
Expand Down
100 changes: 100 additions & 0 deletions Cargo.lock

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

11 changes: 10 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
[workspace]
default-members = ["cli"]
members = ["cli", "cli/config", "cli/loader", "lib", "tags", "highlight"]
members = [
"cli",
"cli/config",
"cli/loader",
"lib",
"tags",
"highlight",
"xtask",
]
resolver = "2"

[workspace.package]
Expand Down Expand Up @@ -46,6 +54,7 @@ ctrlc = { version = "3.4.2", features = ["termination"] }
difference = "2.0.0"
dirs = "5.0.1"
fs4 = "0.7.0"
git2 = "0.18.2"
glob = "0.3.1"
html-escape = "0.2.13"
indexmap = "2.2.2"
Expand Down
62 changes: 0 additions & 62 deletions script/version

This file was deleted.

20 changes: 20 additions & 0 deletions xtask/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "xtask"
version = "0.1.0"
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
keywords.workspace = true
categories.workspace = true
publish = false

[dependencies]
git2.workspace = true
indoc.workspace = true
toml.workspace = true
semver.workspace = true
serde.workspace = true
serde_json.workspace = true
Loading

0 comments on commit 4e28804

Please sign in to comment.