Skip to content

Commit 4fb5678

Browse files
committed
Bump version of package and add publish script
1 parent 9e7f63d commit 4fb5678

File tree

9 files changed

+44
-20
lines changed

9 files changed

+44
-20
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+*'
6+
7+
jobs:
8+
publish:
9+
if: github.repository == 'rquickjs/rquickjs-extra'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Rust
16+
uses: dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203
17+
with:
18+
toolchain: stable
19+
20+
- name: Publish crates
21+
uses: katyo/publish-crates@02cc2f1ad653fb25c7d1ff9eb590a8a50d06186b
22+
with:
23+
registry-token: ${{ secrets.CRATES_TOKEN }}
24+
no-verify: true

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rquickjs-extra"
33
description = "Extra modules for RQuickJS"
4-
version = "0.0.1"
4+
version = "0.1.0"
55
edition = "2021"
66
license = "Apache-2.0"
77
repository = "https://github.com/rquickjs/rquickjs-extra"
@@ -18,11 +18,11 @@ console = ["rquickjs-extra-console"]
1818
sqlite = ["rquickjs-extra-sqlite"]
1919

2020
[dependencies]
21-
rquickjs-extra-console = { path = "modules/console", optional = true }
22-
rquickjs-extra-os = { path = "modules/os", optional = true }
23-
rquickjs-extra-sqlite = { path = "modules/sqlite", optional = true }
24-
rquickjs-extra-timers = { path = "modules/timers", optional = true }
25-
rquickjs-extra-url = { path = "modules/url", optional = true }
21+
rquickjs-extra-console = { version = "0.1.0", path = "modules/console", optional = true }
22+
rquickjs-extra-os = { version = "0.1.0", path = "modules/os", optional = true }
23+
rquickjs-extra-sqlite = { version = "0.1.0", path = "modules/sqlite", optional = true }
24+
rquickjs-extra-timers = { version = "0.1.0", path = "modules/timers", optional = true }
25+
rquickjs-extra-url = { version = "0.1.0", path = "modules/url", optional = true }
2626

2727
[workspace]
2828
resolver = "2"

libs/test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rquickjs-extra-test"
33
description = "Test library for RQuickJS"
4-
version = "0.0.1"
4+
version = "0.1.0"
55
edition = "2021"
66
license = "Apache-2.0"
77
repository = "https://github.com/rquickjs/rquickjs-extra"

libs/utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rquickjs-extra-utils"
33
description = "Utils library for RQuickJS"
4-
version = "0.0.1"
4+
version = "0.1.0"
55
edition = "2021"
66
license = "Apache-2.0"
77
repository = "https://github.com/rquickjs/rquickjs-extra"

modules/console/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rquickjs-extra-console"
33
description = "Console module for RQuickJS"
4-
version = "0.0.1"
4+
version = "0.1.0"
55
edition = "2021"
66
license = "Apache-2.0"
77
repository = "https://github.com/rquickjs/rquickjs-extra"
@@ -12,4 +12,4 @@ log = { version = "0.4" }
1212
rquickjs = { version = "0.9", features = ["macro"] }
1313

1414
[dev-dependencies]
15-
rquickjs-extra-test = { path = "../../libs/test" }
15+
rquickjs-extra-test = { version = "0.1.0", path = "../../libs/test" }

modules/os/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rquickjs-extra-os"
33
description = "OS module for RQuickJS"
4-
version = "0.0.1"
4+
version = "0.1.0"
55
edition = "2021"
66
license = "Apache-2.0"
77
repository = "https://github.com/rquickjs/rquickjs-extra"
@@ -12,7 +12,7 @@ home = "0.5"
1212
num_cpus = "1"
1313
once_cell = "1"
1414
rquickjs = { version = "0.9", features = ["macro"] }
15-
rquickjs-extra-utils = { path = "../../libs/utils" }
15+
rquickjs-extra-utils = { version = "0.1.0", path = "../../libs/utils" }
1616

1717
[target.'cfg(unix)'.dependencies]
1818
libc = "0.2"
@@ -24,5 +24,5 @@ windows-version = "0.1"
2424

2525
[dev-dependencies]
2626
rquickjs = { version = "0.9", features = ["futures"] }
27-
rquickjs-extra-test = { path = "../../libs/test" }
27+
rquickjs-extra-test = { version = "0.1.0", path = "../../libs/test" }
2828
tokio = { version = "1", features = ["full"] }

modules/sqlite/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rquickjs-extra-sqlite"
33
description = "SQLite module for RQuickJS"
4-
version = "0.0.1"
4+
version = "0.1.0"
55
edition = "2021"
66
license = "Apache-2.0"
77
repository = "https://github.com/rquickjs/rquickjs-extra"
@@ -15,12 +15,12 @@ rquickjs = { version = "0.9", features = [
1515
"macro",
1616
"futures",
1717
] }
18-
rquickjs-extra-utils = { path = "../../libs/utils" }
18+
rquickjs-extra-utils = { version = "0.1.0", path = "../../libs/utils" }
1919
sqlx = { version = "0.8", default-features = false, features = [
2020
"sqlite",
2121
"runtime-tokio",
2222
] }
2323

2424
[dev-dependencies]
25-
rquickjs-extra-test = { path = "../../libs/test" }
25+
rquickjs-extra-test = { version = "0.1.0", path = "../../libs/test" }
2626
tokio = { version = "1", features = ["full"] }

modules/timers/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rquickjs-extra-timers"
33
description = "Timers module for RQuickJS"
4-
version = "0.0.1"
4+
version = "0.1.0"
55
edition = "2021"
66
license = "Apache-2.0"
77
repository = "https://github.com/rquickjs/rquickjs-extra"
@@ -14,5 +14,5 @@ tokio = { version = "1", features = ["time", "macros"] }
1414

1515
[dev-dependencies]
1616
futures = { version = "0.3" }
17-
rquickjs-extra-test = { path = "../../libs/test" }
17+
rquickjs-extra-test = { version = "0.1.0", path = "../../libs/test" }
1818
tokio = { version = "1", features = ["full"] }

modules/url/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rquickjs-extra-url"
33
description = "URL module for RQuickJS"
4-
version = "0.0.1"
4+
version = "0.1.0"
55
edition = "2021"
66
license = "Apache-2.0"
77
repository = "https://github.com/rquickjs/rquickjs-extra"
@@ -12,4 +12,4 @@ either = { version = "1" }
1212
rquickjs = { version = "0.9", features = ["either", "macro"] }
1313

1414
[dev-dependencies]
15-
rquickjs-extra-test = { path = "../../libs/test" }
15+
rquickjs-extra-test = { version = "0.1.0", path = "../../libs/test" }

0 commit comments

Comments
 (0)