Skip to content

Commit

Permalink
ci: 🎡 rework travis-ci semantic-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaju committed Dec 4, 2020
1 parent 969ccdc commit 58fcda2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"branches": ["master"]
}
29 changes: 16 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
os: linux
dist: bionic
language: node_js
cache:
directories:
- ~/.npm
cache: npm
notifications:
email: false
node_js:
- '14.2.0'
script:
- npm run test
after_success:
- npm run report-coverage
- npm run travis-deploy-once "npm run semantic-release"
branches:
only:
- master

- "14.15.1"
jobs:
include:
- stage: test
script: npm run test
- stage: npm release
if: branch = master
script:
- npm run report-coverage
- echo "Deploying to npm ..."
deploy:
provider: script
script: npx semantic-release

0 comments on commit 58fcda2

Please sign in to comment.