Skip to content

Commit

Permalink
ci: Define release order for crates
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed May 21, 2024
1 parent 48b946d commit 8e44182
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ jobs:
- name: Publish crates
shell: nu {0}
run: |
ls crates | where type == dir
| get name
| filter {|n| $"($n)/Cargo.toml" | path exists }
| each {|p| split row "/" | last}
| each {|p| cargo publish -p $p --allow-dirty }
open crates/release.json | each {|p| cargo publish -p $p --allow-dirty }
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
11 changes: 11 additions & 0 deletions crates/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Crates

...

## Files

- `release.json` defines the releasing order of crates
- only listed crates will be released
- dependent crates should follow those they are depending on
- `katex-header.html` is an HTML snippet to be included in every docs page to inject
KaTeX support
4 changes: 2 additions & 2 deletions crates/bump-versions.nu
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
cd ..

let version = "0.1.1-alpha.0"
let version = "0.1.1-alpha.1"

open Cargo.toml | update workspace.package.version $version
| collect { save -f Cargo.toml }

let crates = ls crates | where type == dir | get name | filter {|n| $"($n)/Cargo.toml" | path exists } | each {|p| split row "/" | last}
let crates = open crates/release.json

def update-manifest [] {
let manifest = $in
Expand Down
1 change: 1 addition & 0 deletions crates/release.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["ekore", "eko"]

0 comments on commit 8e44182

Please sign in to comment.