Skip to content

Commit

Permalink
feat: add files for travis and semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Feb 17, 2019
1 parent c78e3a8 commit e172c79
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"branch": "master",
"plugins": [
["@semantic-release/commit-analyzer", {
"preset": "angular",
"releaseRules": [
{"type": "feat", "release": "minor"},
{"type": "fix", "release": "patch"},
{"type": "docs", "release": "patch"},
{"type": "style", "release": "patch"},
{"type": "refactor", "release": "patch"},
{"type": "perf", "release": "patch"},
{"type": "test", "release": "patch"}
]
}],
["@semantic-release/release-notes-generator", {
"preset": "angular",
"writerOpts": {
"commitsSort": ["subject", "scope"]
}
}],
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Changelog"
}],
["@semantic-release/git", {
"assets": ["CHANGELOG.md"]
}],
"@semantic-release/github"
]
}
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: generic

jobs:
include:
# Define the release stage that runs semantic-release
- stage: release
script:
- npm install semantic-release -D
- npm install @semantic-release/changelog -D
- npm install @semantic-release/exec -D
- npm install @semantic-release/git -D
- npm list -g
deploy:
provider: script
skip_cleanup: true
script:
# Use nvm to install and use the Node LTS version (nvm is installed on all Travis images)
# - nvm install lts/*
- npx semantic-release

0 comments on commit e172c79

Please sign in to comment.