feat: Include version in release (#1336)

* Set version before build

* Format yaml a little
This commit is contained in:
Paul Pacheco 2019-12-21 09:35:02 -06:00 committed by GitHub
parent daa7265fb0
commit e4f89cf12f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -2,10 +2,10 @@
"verifyConditions": ["@semantic-release/github"],
"publish": ["@semantic-release/github"],
"prepare": [
{
"path": "@semantic-release/exec",
"cmd": "set-version ${nextRelease.version}"
}
{
"path": "@semantic-release/exec",
"cmd": "echo ${nextRelease.version} > Assets/Mirror/version.txt"
}
],
"plugins": [
["@semantic-release/commit-analyzer", {

View File

@ -18,7 +18,9 @@ install:
# Do not build on tags (GitHub only)
skip_tags: true
before_build:
semantic-release --prepare
build_script:
- docfx metadata doc\docfx.json
- docfx build doc\docfx.json