CI: Implement semantic versioning (#601)

* Semantic versioning

* Access env variable correctly

* Invoke semantic release

* Not an npm package

* fix(pencil): Testing making a patch release

* c: support feature and breaking as tags
This commit is contained in:
Paul Pacheco 2019-03-19 10:44:43 -05:00 committed by vis2k
parent 5a1157fe4d
commit 29d6111819
2 changed files with 17 additions and 10 deletions

13
.releaserc.yml Normal file
View File

@ -0,0 +1,13 @@
{
"plugins": [
["@semantic-release/commit-analyzer", {
"preset": "angular",
"releaseRules": [
{"type": "breaking", "release": "major"},
{"type": "feature", "release": "minor"},
]
}],
'@semantic-release/release-notes-generator',
'@semantic-release/github'
]
}

View File

@ -33,14 +33,8 @@ artifacts:
image: Visual Studio 2017
before_deploy:
- npm install -g semantic-release@15
deploy:
description: 'This is a bleeding edge release. BACKUP BEFORE USING THIS AUTOMATED BUILD\n$(APPVEYOR_REPO_COMMIT_MESSAGE)'
provider: GitHub
auth_token:
secure: G42snf8s5fEos7UfoRSW6eW+8rqGGMH3iw1ZCjRUjcUSKupHUfrKJMXQ11wbjRuW # your encrypted token from GitHub
artifact: Mirror.zip # upload all NuGet packages to release assets
draft: false
prerelease: false
on:
branch: master
deploy_script:
- semantic-release