Commit 6c79cfdf authored by suyanlong's avatar suyanlong Committed by vipwzw

[[FIX]] Fixed semantic-release-replace-plugin config

parent f66b09c7
......@@ -31,21 +31,19 @@
"countMatches": true
},
{
{
"files": [ "README.md" ],
"from": "# chain33 官方插件系统(.*)",
"to": "# chain33 官方插件系统(v${nextRelease.version})",
"results": [
{
"file": "README.md",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
},
}
"files": ["README.md"],
"from": "# chain33 官方插件系统(.*)",
"to": "# chain33 官方插件系统(v${nextRelease.version})",
"results": [
{
"file": "README.md",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
},
]
}
],
......
......@@ -29,7 +29,9 @@ var (
func main() {
flag.Parse()
if *versionCmd {
fmt.Println(fmt.Sprintf("build time: %s", version.BuildTime))
fmt.Println(fmt.Sprintf("Build time: %s", version.BuildTime))
fmt.Println(fmt.Sprintf("System version: %s", version.Platform))
fmt.Println(fmt.Sprintf("Golang version: %s", version.GoVersion))
fmt.Println(fmt.Sprintf("plugin version: %s", version.GetVersion()))
fmt.Println(fmt.Sprintf("chain33 frame version: %s", frameVersion.GetVersion()))
return
......
package version
import (
"fmt"
"runtime"
)
//var version control
var (
Version = "master"
Version = "1.65.3"
GitCommit string
BuildTime string
// GoVersion system go version
GoVersion = runtime.Version()
// Platform info
Platform = fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH)
)
//GetVersion 获取版本信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment