Skip to content

Commit

Permalink
ci(semantic-release):
Browse files Browse the repository at this point in the history
  • Loading branch information
mirismaili committed Jul 25, 2019
1 parent 500f3d3 commit c556fbc
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: node_js

cache: npm

# `XX` means "false", "forbidden", "disabled", etc
# `YY` means "yes", "true", "force", etc

jobs:
include:
- stage: "Release"

name: "Build and Release"
node_js: --lts

if: tag !~ ^(v|typedoc-)\d+\.\d+\.\d+ && (
env(SEMANTIC_RELEASE) == YY ||
env(SEMANTIC_RELEASE) != XX && type == push && branch == master &&
commit_message =~ /^(?:feat|fix|refactor|pref|build|revert)/)

deploy:
provider: script
skip_cleanup: true

# `bash -c ...` is required for the script in `deploy` section. Also, quotes around env-vars even in `if [[ ]]`.
script: bash -c '
npx semantic-release@$SEMANTIC_RELEASE_VERSION;
'
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Making able the app to switch between material themes at run-time",
"scripts": {
"README.md-TOC": "node markdown-toc.js -f README.md",
"commit": "git-cz"
"commit": "git-cz",
"semantic-release": "npx semantic-release"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit c556fbc

Please sign in to comment.