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
6 changes: 6 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ jobs:
- name: Login to Crates.IO
run: cargo login ${{ secrets.CRATES_TOKEN }}

- name: Publish Macros
run: cd core/macros && cargo publish

- name: Publish Types
run: cd core/types && cargo publish

- name: Publish Expression
run: cd core/expression && cargo publish

Expand Down
4 changes: 4 additions & 0 deletions actions/cargo-version-action/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34068,10 +34068,14 @@ var toml = __nccwpck_require__(2132);
const versionRegex = /version = "[0-9]+\.[0-9]+\.[0-9]+"$/im;
const expressionDep = /zen-expression =.*$/im;
const templateDep = /zen-tmpl =.*$/im;
const macroDep = /zen-macros =.*$/im;
const typesDep = /zen-types =.*$/im;
const updateCargoContents = (contents, { version }) => {
return contents
.replace(versionRegex, `version = "${version}"`)
.replace(expressionDep, `zen-expression = { path = "../expression", version = "${version}" }`)
.replace(macroDep, `zen-macros = { path = "../macros", version = "${version}" }`)
.replace(typesDep, `zen-types = { path = "../types", version = "${version}" }`)
.replace(templateDep, `zen-tmpl = { path = "../template", version = "${version}" }`);
};
const getCargoVersion = (contents) => {
Expand Down
4 changes: 4 additions & 0 deletions actions/cargo-version-action/src/cargo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ type UpdateCargoOptions = {
const versionRegex = /version = "[0-9]+\.[0-9]+\.[0-9]+"$/im;
const expressionDep = /zen-expression =.*$/im;
const templateDep = /zen-tmpl =.*$/im;
const macroDep = /zen-macros =.*$/im;
const typesDep = /zen-types =.*$/im;

export const updateCargoContents = (contents: string, { version }: UpdateCargoOptions): string => {
return contents
.replace(versionRegex, `version = "${version}"`)
.replace(expressionDep, `zen-expression = { path = "../expression", version = "${version}" }`)
.replace(macroDep, `zen-macros = { path = "../macros", version = "${version}" }`)
.replace(typesDep, `zen-types = { path = "../types", version = "${version}" }`)
.replace(templateDep, `zen-tmpl = { path = "../template", version = "${version}" }`);
};

Expand Down
4 changes: 2 additions & 2 deletions core/expression/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ nohash-hasher = "0.2.0"
strsim = "0.11"
iana-time-zone = "0.1"

zen-macros = { path = "../macros" }
zen-types = { path = "../types" }
zen-macros = { path = "../macros", version = "0.50.0" }
zen-types = { path = "../types", version = "0.50.0" }

[dev-dependencies]
criterion = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion core/macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "zen-macros"
version = "0.50.0"
edition = "2024"
publish = false

[lib]
proc-macro = true
Expand Down
1 change: 0 additions & 1 deletion core/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "zen-types"
version = "0.50.0"
edition = "2024"
publish = false

[dependencies]
ahash = { workspace = true }
Expand Down
Loading