Skip to content

Commit 03ad1a2

Browse files
release: v0.1.3 (#391)
<!-- greptile_comment --> ## Greptile Summary Version bump from 0.1.2 to 0.1.3 across NPM packages and Cargo workspace, with workflow improvements for release automation. - Version mismatch risk in `.github/workflows/publish-packages.yml`: RELEASE_VERSION environment variable is set after it's used in NPM package building step - Consistent version update across all platform-specific packages in `.github/packages/npm-package/package.json` (darwin/arm64, darwin/x64, linux/arm64, linux/x64, windows/x64) - Updated workspace package version to 0.1.3 in `Cargo.toml`, maintaining alignment with Solana Version 2.2.x - Template file `.github/packages/npm-package/package.json.tmpl` synchronized with version 0.1.3 <!-- /greptile_comment -->
1 parent 59ef8de commit 03ad1a2

File tree

6 files changed

+81
-68
lines changed

6 files changed

+81
-68
lines changed

.github/packages/npm-package/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@magicblock-labs/ephemeral-validator",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "MagicBlock Ephemeral Validator",
55
"homepage": "https://github.com/magicblock-labs/ephemeral-validator#readme",
66
"bugs": {
@@ -27,11 +27,11 @@
2727
"typescript": "^4.9.4"
2828
},
2929
"optionalDependencies": {
30-
"@magicblock-labs/ephemeral-validator-darwin-arm64": "0.1.2",
31-
"@magicblock-labs/ephemeral-validator-darwin-x64": "0.1.2",
32-
"@magicblock-labs/ephemeral-validator-linux-arm64": "0.1.2",
33-
"@magicblock-labs/ephemeral-validator-linux-x64": "0.1.2",
34-
"@magicblock-labs/ephemeral-validator-windows-x64": "0.1.2"
30+
"@magicblock-labs/ephemeral-validator-darwin-arm64": "0.1.3",
31+
"@magicblock-labs/ephemeral-validator-darwin-x64": "0.1.3",
32+
"@magicblock-labs/ephemeral-validator-linux-arm64": "0.1.3",
33+
"@magicblock-labs/ephemeral-validator-linux-x64": "0.1.3",
34+
"@magicblock-labs/ephemeral-validator-windows-x64": "0.1.3"
3535
},
3636
"publishConfig": {
3737
"access": "public"

.github/packages/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": "Ephemeral Validator (${node_pkg})",
4-
"version": "0.1.2",
4+
"version": "0.1.3",
55
"repository": {
66
"type": "git",
77
"url": "git+https://github.com/magicblock-labs/ephemeral-validator.git"

.github/workflows/publish-packages.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,19 @@ jobs:
132132
echo "release_name=${release_name}" >> $GITHUB_ENV
133133
mv "target/${{ matrix.build.TARGET }}/release/${bin}" "target/${{ matrix.build.TARGET }}/release/${release_name}"
134134
135+
- name: Set release version
136+
if: ${{ env.DRY_RUN == 'false' }}
137+
run: |
138+
if [ "${{ github.event_name }}" = "release" ]; then
139+
echo "RELEASE_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
140+
elif [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
141+
echo "RELEASE_VERSION=${{ github.event.inputs.release_version }}" >> $GITHUB_ENV
142+
elif [[ "${{ github.ref }}" == refs/heads/release/v* ]]; then
143+
echo "RELEASE_VERSION=$(echo ${{ github.ref }} | sed 's|refs/heads/release/||')" >> $GITHUB_ENV
144+
else
145+
echo "RELEASE_VERSION=v0.0.0-dev" >> $GITHUB_ENV
146+
fi
147+
135148
- name: Publish binary to GitHub release
136149
if: ${{ env.DRY_RUN == 'false' }}
137150
uses: svenstaro/upload-release-action@v2

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ resolver = "2"
4242

4343
[workspace.package]
4444
# Solana Version (2.2.x)
45-
version = "0.1.2"
45+
version = "0.1.3"
4646
authors = ["MagicBlock Maintainers <[email protected]>"]
4747
repository = "https://github.com/magicblock-labs/ephemeral-validator"
4848
homepage = "https://www.magicblock.xyz"

0 commit comments

Comments
 (0)