mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
feat: Include version in release (#1336)
* Set version before build * Format yaml a little
This commit is contained in:
parent
daa7265fb0
commit
e4f89cf12f
@ -2,10 +2,10 @@
|
|||||||
"verifyConditions": ["@semantic-release/github"],
|
"verifyConditions": ["@semantic-release/github"],
|
||||||
"publish": ["@semantic-release/github"],
|
"publish": ["@semantic-release/github"],
|
||||||
"prepare": [
|
"prepare": [
|
||||||
{
|
{
|
||||||
"path": "@semantic-release/exec",
|
"path": "@semantic-release/exec",
|
||||||
"cmd": "set-version ${nextRelease.version}"
|
"cmd": "echo ${nextRelease.version} > Assets/Mirror/version.txt"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
["@semantic-release/commit-analyzer", {
|
["@semantic-release/commit-analyzer", {
|
||||||
|
@ -18,7 +18,9 @@ install:
|
|||||||
|
|
||||||
# Do not build on tags (GitHub only)
|
# Do not build on tags (GitHub only)
|
||||||
skip_tags: true
|
skip_tags: true
|
||||||
|
before_build:
|
||||||
|
semantic-release --prepare
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- docfx metadata doc\docfx.json
|
- docfx metadata doc\docfx.json
|
||||||
- docfx build doc\docfx.json
|
- docfx build doc\docfx.json
|
||||||
|
Loading…
Reference in New Issue
Block a user