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
18 changes: 3 additions & 15 deletions .github/workflows/crates-version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ name: Crates Version Bump
on:
workflow_dispatch:
inputs:
all:
description: 'Cascade version bump to downstream crates (crates, depending on the changed one)'
required: false
default: true
type: boolean
pre-id:
description: 'Prerelease identifier for prerelease versions'
required: false
Expand Down Expand Up @@ -53,25 +48,18 @@ jobs:
- name: Run version bump
run: |
BRANCH="${GITHUB_REF_NAME}"
ALL_FLAG=""
PRE_ID="${{ inputs.pre-id }}"

if [ "${{ inputs.all }}" = "true" ]; then
ALL_FLAG="--all"
echo "Will bump version for ALL crates"
else
echo "Will bump version for CHANGED crates only"
fi

echo "Running on branch: $BRANCH"
echo "Prerelease identifier: $PRE_ID"
echo "Will bump version for ALL crates"

case "$BRANCH" in
main)
cargo workspaces version --allow-branch "$BRANCH" --no-global-tag $ALL_FLAG --yes
cargo workspaces version --allow-branch "$BRANCH" --no-global-tag --yes
;;
development)
cargo workspaces version --allow-branch "$BRANCH" --no-global-tag prerelease --pre-id "$PRE_ID" $ALL_FLAG --yes
cargo workspaces version --allow-branch "$BRANCH" --no-global-tag prerelease --pre-id "$PRE_ID" --yes
;;
*)
echo "❌ This workflow can only be run on 'main' or 'development'."
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ brew install quickmark-cli
##### Option 2 - from crates

```shell
cargo install quickmark-cli --version 1.0.0-alpha.1
cargo install quickmark-cli --version 1.0.0-beta.1
```

##### Option 3 - download from the release page
Expand Down Expand Up @@ -164,7 +164,7 @@ Or just drug and drop the file to the Extensions Pane in the editor.
Install via cargo:

```bash
cargo install quickmark-server --version 1.0.0-alpha.1
cargo install quickmark-server --version 1.0.0-beta.1
```

Or download the binary for your platform from the latest [release page](https://github.com/ekropotin/quickmark/releases)
Expand Down
4 changes: 2 additions & 2 deletions crates/quickmark-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ path = "src/main.rs"
[dependencies]
anyhow = "1.0.86"
clap = { version = "4.5.4", features = ["derive"] }
quickmark-core = { path = "../quickmark-core", version = "1.0.0-alpha.3" }
quickmark-core = { path = "../quickmark-core", version = "1.0.0-beta.1" }
glob = "0.3"
rayon = "1.8"
ignore = "0.4"
walkdir = "2.4"

[dev-dependencies.quickmark-core]
path = "../quickmark-core"
version = "1.0.0-alpha.1"
version = "1.0.0-beta.1"
features = ["testing"]

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/quickmark-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ categories = ["text-processing", "development-tools", "text-editors"]

[dependencies]
anyhow = "1.0.86"
quickmark-core = { path = "../quickmark-core", version = "1.0.0-alpha.3" }
quickmark-core = { path = "../quickmark-core", version = "1.0.0-beta.1" }
tower-lsp = "0.20.0"
tokio = { version = "1.0", features = ["full"] }

Expand Down