Skip to content

Commit 76ea6e0

Browse files
authored
Add support for release candidates. (#1834)
1 parent 6bfe568 commit 76ea6e0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
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
@@ -1,6 +1,6 @@
11
[package]
22
name = "polymesh"
3-
version = "7.3.0"
3+
version = "7.3.0-rc1"
44
authors = ["PolymeshAssociation"]
55
build = "build.rs"
66
edition = "2021"

scripts/check_spec_and_cargo_version.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ else
88
fi
99
POLYMESH_VERSION=`grep -h -r ' spec_version: ' pallets/runtime/*/src/runtime.rs | sort -u | sed -e 's/.*spec_version: \([0-9]\+\)_[0]*\([0-9]\+\)_[0]*\([0-9]\+\)[0-9],/\1.\2.\3/g'`
1010

11-
if head Cargo.toml | grep -q $POLYMESH_VERSION; then
11+
NODE_PKG_VERSION=`cargo info -q --color never polymesh | grep "^version:" | sed -e 's/version: \([0-9a-z.-]*\) .*/\1/g'`
12+
13+
if echo "$NODE_PKG_VERSION" | grep -q $POLYMESH_VERSION; then
1214
echo "Spec version matches Polymesh version."
1315
exit 0
1416
else
1517
echo "Spec version doesn't match Polymesh version."
18+
echo "Version from spec_version=$POLYMESH_VERSION"
19+
echo "Version from node package=$NODE_PKG_VERSION"
1620
exit 1
1721
fi

0 commit comments

Comments
 (0)