From e4f89cf12f6dca42bbb5c25e50f03ed7fcde3f82 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Sat, 21 Dec 2019 09:35:02 -0600 Subject: [PATCH] feat: Include version in release (#1336) * Set version before build * Format yaml a little --- .releaserc.yml | 8 ++++---- appveyor.yml | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.releaserc.yml b/.releaserc.yml index c1b429a63..934f8fef2 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -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", { diff --git a/appveyor.yml b/appveyor.yml index 96b908acc..048e69b3c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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