Bump to v0.2.7 (#1561)

## Issue Addressed

NA

## Proposed Changes

- Update to v0.2.7
- Add script to make update easy.

## Additional Info

NA
This commit is contained in:
Paul Hauner 2020-08-24 08:25:34 +00:00
parent 3569506acd
commit dfd02d6179
8 changed files with 39 additions and 7 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "account_manager"
version = "0.2.6"
version = "0.2.7"
authors = ["Paul Hauner <paul@paulhauner.com>", "Luke Anderson <luke@sigmaprime.io>"]
edition = "2018"

View File

@ -1,6 +1,6 @@
[package]
name = "beacon_node"
version = "0.2.6"
version = "0.2.7"
authors = ["Paul Hauner <paul@paulhauner.com>", "Age Manning <Age@AgeManning.com"]
edition = "2018"

View File

@ -1,6 +1,6 @@
[package]
name = "boot_node"
version = "0.2.6"
version = "0.2.7"
authors = ["Sigma Prime <contact@sigmaprime.io>"]
edition = "2018"

View File

@ -10,7 +10,7 @@ use target_info::Target;
/// `Lighthouse/v0.2.0-1419501f2+`
pub const VERSION: &str = git_version!(
args = ["--always", "--dirty=+"],
prefix = "Lighthouse/v0.2.6-",
prefix = "Lighthouse/v0.2.7-",
fallback = "unknown"
);

View File

@ -1,7 +1,7 @@
[package]
name = "lcli"
description = "Lighthouse CLI (modeled after zcli)"
version = "0.2.6"
version = "0.2.7"
authors = ["Paul Hauner <paul@paulhauner.com>"]
edition = "2018"

View File

@ -1,6 +1,6 @@
[package]
name = "lighthouse"
version = "0.2.6"
version = "0.2.7"
authors = ["Sigma Prime <contact@sigmaprime.io>"]
edition = "2018"

32
scripts/change_version.sh Executable file
View File

@ -0,0 +1,32 @@
# Change the version across multiple files, prior to a release. Use `sed` to
# find/replace the exiting version with the new one.
#
# Takes two arguments:
#
# 1. Current version (e.g., `0.2.6`)
# 2. New version (e.g., `0.2.7`)
#
# ## Example:
#
# `./change_version.sh 0.2.6 0.2.7`
FROM=$1
TO=$2
VERSION_CRATE="../common/lighthouse_version/src/lib.rs"
update_cargo_toml () {
echo $1
sed -i -e "s/version = \"$FROM\"/version = \"$TO\"/g" $1
}
echo "Changing version from $FROM to $TO"
update_cargo_toml ../account_manager/Cargo.toml
update_cargo_toml ../beacon_node/Cargo.toml
update_cargo_toml ../boot_node/Cargo.toml
update_cargo_toml ../lcli/Cargo.toml
update_cargo_toml ../lighthouse/Cargo.toml
update_cargo_toml ../validator_client/Cargo.toml
echo $VERSION_CRATE
sed -i -e "s/$FROM/$TO/g" $VERSION_CRATE

View File

@ -1,6 +1,6 @@
[package]
name = "validator_client"
version = "0.2.6"
version = "0.2.7"
authors = ["Paul Hauner <paul@paulhauner.com>", "Age Manning <Age@AgeManning.com>", "Luke Anderson <luke@lukeanderson.com.au>"]
edition = "2018"