Skip to content

Commit

Permalink
chore(ci): support auto-releasing with semantic-release #185
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno authored Mar 27, 2020
2 parents e676403 + 3a342fa commit 367cec2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
src
.travis.yml
.codeclimate.yml
.editorconfig
Expand All @@ -7,4 +6,3 @@ src
.nvmrc
content
test

8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,18 @@ stages:
- lint
- test
- coverage
- name: release
if: branch = master && type NOT IN (pull_request)

jobs:
include:
- stage: lint
script: npm run lint
- stage: coverage
script: npm run coverage
- stage: release
node_js: node
deploy:
provider: script
cleanup: false
script: npx semantic-release
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"nock": "^11.7.2"
},
"dependencies": {
"atom-ui-reporter": "0.0.1",
"feedparser": "1.1.4",
"request": "^2.88.0"
},
Expand All @@ -55,5 +54,8 @@
},
"engines": {
"node": ">=8.16.2"
},
"release": {
"branch": "master"
}
}

0 comments on commit 367cec2

Please sign in to comment.