Skip to content

Commit

Permalink
chore: enable semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
LinLzis committed Aug 26, 2020
1 parent 5c2c0cc commit 02c1c58
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
21 changes: 11 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: node_js

node_js:
- 8
- 10

install:
Expand All @@ -11,12 +10,14 @@ install:
jobs:
include:
# Define the release stage that runs semantic-release
# - stage: release
# node_js: 10.18
# # Advanced: optionally overwrite your default `script` step to skip the tests
# # script: skip
# deploy:
# provider: script
# skip_cleanup: true
# script:
# - npm run release
- stage: release
node_js: 10.18
# Advanced: optionally overwrite your default `script` step to skip the tests
# script: skip
deploy:
provider: script
skip_cleanup: true
on:
branch: master
script:
- npm run release
12 changes: 2 additions & 10 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
verifyConditions: [
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/git',
'@semantic-release/github'
],
Expand All @@ -12,7 +11,8 @@ module.exports = {
preset: 'angular',
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING']
}
},
releaseRules: [{ type: 'feat', release: 'patch' }]
}
],
[
Expand All @@ -33,14 +33,6 @@ module.exports = {
changelogFile: 'CHANGELOG.md'
}
],
[
'@semantic-release/npm',
{
pkgRoot: '.',
npmPublish: false,
tarballDir: false
}
],
[
'@semantic-release/git',
{
Expand Down

0 comments on commit 02c1c58

Please sign in to comment.