Skip to content

Commit 19f7331

Browse files
authored
🔖 Bolt v0.2.3 (#174)
1 parent 303322d commit 19f7331

File tree

9 files changed

+98
-66
lines changed

9 files changed

+98
-66
lines changed

.github/workflows/publish-bolt-crates.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
5151
with:
5252
toolchain: stable
5353

54+
- name: Install Rust nightly
55+
uses: dtolnay/rust-toolchain@nightly
56+
with:
57+
toolchain: nightly
58+
5459
- name: Cache rust
5560
uses: Swatinem/rust-cache@v2
5661

@@ -170,23 +175,22 @@ jobs:
170175
NO_VERIFY_FLAG="--no-verify"
171176
fi
172177
173-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/utils/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
174-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
175-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component-deserialize/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
176-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component-id/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
177-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/system/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
178-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/system-input/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
179-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/extra-accounts/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
180-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/arguments/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
181-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/bolt-program/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
182-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/delegate/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
183-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/programs/bolt-system/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
184-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/programs/bolt-component/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
185-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/programs/world/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
186-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
187-
if [ "${DRY_RUN}" != "true" ]; then
188-
cargo publish --manifest-path=crates/bolt-cli/Cargo.toml --token $CRATES_TOKEN
189-
fi
178+
cargo +nightly publish -Zpackage-workspace $DRY_RUN_FLAG $NO_VERIFY_FLAG --token $CRATES_TOKEN \
179+
-p world \
180+
-p bolt-cli \
181+
-p bolt-lang \
182+
-p bolt-utils \
183+
-p bolt-system \
184+
-p bolt-component \
185+
-p bolt-attribute-bolt-arguments \
186+
-p bolt-attribute-bolt-component \
187+
-p bolt-attribute-bolt-component-deserialize \
188+
-p bolt-attribute-bolt-component-id \
189+
-p bolt-attribute-bolt-delegate \
190+
-p bolt-attribute-bolt-extra-accounts \
191+
-p bolt-attribute-bolt-program \
192+
-p bolt-attribute-bolt-system \
193+
-p bolt-attribute-bolt-system-input
190194
env:
191195
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
192196
DRY_RUN: ${{ env.DRY_RUN }}

.github/workflows/publish-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
184184
publish-wrapper-npm-package:
185185
name: Publish wrapper NPM packages
186-
runs-on: ubuntu-20.04
186+
runs-on: ubuntu-latest
187187
needs: publish-npm-binaries
188188
steps:
189189
- name: Checkout

Cargo.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,29 @@ members = [
1111
]
1212

1313
[workspace.package]
14-
version = "0.2.2"
14+
version = "0.2.3"
1515
authors = ["Magicblock Labs <dev@magicblock.gg>"]
1616
repository = "https://github.com/magicblock-labs/bolt"
1717
homepage = "https://www.magicblock.gg/"
1818
license = "MIT"
1919
edition = "2021"
2020

2121
[workspace.dependencies]
22-
bolt-types = { path = "crates/types", version = "=0.2.2" }
23-
bolt-lang = { path = "crates/bolt-lang", version = "=0.2.2" }
24-
bolt-attribute-bolt-program = { path = "crates/bolt-lang/attribute/bolt-program", version = "=0.2.2" }
25-
bolt-attribute-bolt-delegate = { path = "crates/bolt-lang/attribute/delegate", version = "=0.2.2" }
26-
bolt-attribute-bolt-component = { path = "crates/bolt-lang/attribute/component", version = "=0.2.2" }
27-
bolt-attribute-bolt-system = { path = "crates/bolt-lang/attribute/system", version = "=0.2.2"}
28-
bolt-attribute-bolt-system-input = { path = "crates/bolt-lang/attribute/system-input", version = "=0.2.2" }
29-
bolt-attribute-bolt-extra-accounts = { path = "crates/bolt-lang/attribute/extra-accounts", version = "=0.2.2" }
30-
bolt-attribute-bolt-arguments = { path = "crates/bolt-lang/attribute/arguments", version = "=0.2.2" }
31-
bolt-attribute-bolt-component-deserialize = { path = "crates/bolt-lang/attribute/component-deserialize", version = "=0.2.2" }
32-
bolt-attribute-bolt-component-id = { path = "crates/bolt-lang/attribute/component-id", version = "=0.2.2" }
33-
bolt-utils = { path = "crates/bolt-lang/utils", version = "=0.2.2" }
34-
world = { path = "crates/programs/world", features = ["cpi"], version = "=0.2.2"}
35-
bolt-system = { path = "crates/programs/bolt-system", features = ["cpi"], version = "=0.2.2"}
36-
bolt-component = { path = "crates/programs/bolt-component", features = ["cpi"], version = "=0.2.2"}
22+
bolt-types = { path = "crates/types", version = "=0.2.3" }
23+
bolt-lang = { path = "crates/bolt-lang", version = "=0.2.3" }
24+
bolt-attribute-bolt-program = { path = "crates/bolt-lang/attribute/bolt-program", version = "=0.2.3" }
25+
bolt-attribute-bolt-delegate = { path = "crates/bolt-lang/attribute/delegate", version = "=0.2.3" }
26+
bolt-attribute-bolt-component = { path = "crates/bolt-lang/attribute/component", version = "=0.2.3" }
27+
bolt-attribute-bolt-system = { path = "crates/bolt-lang/attribute/system", version = "=0.2.3"}
28+
bolt-attribute-bolt-system-input = { path = "crates/bolt-lang/attribute/system-input", version = "=0.2.3" }
29+
bolt-attribute-bolt-extra-accounts = { path = "crates/bolt-lang/attribute/extra-accounts", version = "=0.2.3" }
30+
bolt-attribute-bolt-arguments = { path = "crates/bolt-lang/attribute/arguments", version = "=0.2.3" }
31+
bolt-attribute-bolt-component-deserialize = { path = "crates/bolt-lang/attribute/component-deserialize", version = "=0.2.3" }
32+
bolt-attribute-bolt-component-id = { path = "crates/bolt-lang/attribute/component-id", version = "=0.2.3" }
33+
bolt-utils = { path = "crates/bolt-lang/utils", version = "=0.2.3" }
34+
world = { path = "crates/programs/world", features = ["cpi"], version = "=0.2.3"}
35+
bolt-system = { path = "crates/programs/bolt-system", features = ["cpi"], version = "=0.2.3"}
36+
bolt-component = { path = "crates/programs/bolt-component", features = ["cpi"], version = "=0.2.3"}
3737

3838
## External crates
3939
session-keys = { version = ">=2.0.7", features = ["no-entrypoint"] }

clients/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@magicblock-labs/bolt-sdk",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"description": "Bolt typescript SDK",
55
"author": "dev@magicblock.gg",
66
"license": "MIT",

crates/bolt-cli/npm-package/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@magicblock-labs/bolt-cli",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"description": "Bolt CLI tool",
55
"homepage": "https://github.com/magicblock-labs/bolt#readme",
66
"bugs": {
@@ -27,13 +27,13 @@
2727
"prettier": "^3.3.3"
2828
},
2929
"optionalDependencies": {
30-
"@magicblock-labs/bolt-cli-darwin-x64": "0.2.2",
31-
"@magicblock-labs/bolt-cli-darwin-arm64": "0.2.2",
32-
"@magicblock-labs/bolt-cli-linux-x86": "0.2.2",
33-
"@magicblock-labs/bolt-cli-linux-x64": "0.2.2",
34-
"@magicblock-labs/bolt-cli-linux-arm64": "0.2.2",
35-
"@magicblock-labs/bolt-cli-windows-x86": "0.2.2",
36-
"@magicblock-labs/bolt-cli-windows-x64": "0.2.2"
30+
"@magicblock-labs/bolt-cli-darwin-x64": "0.2.3",
31+
"@magicblock-labs/bolt-cli-darwin-arm64": "0.2.3",
32+
"@magicblock-labs/bolt-cli-linux-x86": "0.2.3",
33+
"@magicblock-labs/bolt-cli-linux-x64": "0.2.3",
34+
"@magicblock-labs/bolt-cli-linux-arm64": "0.2.3",
35+
"@magicblock-labs/bolt-cli-windows-x86": "0.2.3",
36+
"@magicblock-labs/bolt-cli-windows-x64": "0.2.3"
3737
},
3838
"publishConfig": {
3939
"access": "public"

crates/bolt-cli/npm-package/package.json.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@magicblock-labs/${node_pkg}",
33
"description": "Bolt CLI tool (${node_pkg})",
4-
"version": "0.2.2",
4+
"version": "0.2.3",
55
"repository": {
66
"type": "git",
77
"url": "git+https://github.com/magicblock-labs/bolt.git"

docs/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11

2-
## [0.2.2] - 2025-02-24
2+
## [0.2.3] - 2025-04-25
33

44
### ✨️ Features
5+
- Updating Bolt client for C# (#129)
56
- Adding DestroyComponent function (#143)
67
- Separating apply and apply_with_session (#141)
78

89

910
### 🐛 Bug Fixes
11+
- Fixing async cli commands (#159)
1012

1113
## [0.2.1] - 2025-02-17
1214

scripts/test-publish.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
DRY_RUN="true"
2+
DRY_RUN_FLAG=""
3+
if [ "${DRY_RUN}" = "true" ]; then
4+
DRY_RUN_FLAG="--dry-run"
5+
fi
6+
7+
if [ "${DRY_RUN}" = "true" ]; then
8+
NO_VERIFY_FLAG="--no-verify"
9+
fi
10+
11+
cargo +nightly publish -Zpackage-workspace $DRY_RUN_FLAG $NO_VERIFY_FLAG \
12+
-p world \
13+
-p bolt-cli \
14+
-p bolt-lang \
15+
-p bolt-utils \
16+
-p bolt-system \
17+
-p bolt-component \
18+
-p bolt-attribute-bolt-arguments \
19+
-p bolt-attribute-bolt-component \
20+
-p bolt-attribute-bolt-component-deserialize \
21+
-p bolt-attribute-bolt-component-id \
22+
-p bolt-attribute-bolt-delegate \
23+
-p bolt-attribute-bolt-extra-accounts \
24+
-p bolt-attribute-bolt-program \
25+
-p bolt-attribute-bolt-system \
26+
-p bolt-attribute-bolt-system-input

0 commit comments

Comments
 (0)