Skip to content

Commit

Permalink
Merge pull request #1 from egendata/ci/travis
Browse files Browse the repository at this point in the history
chore: 🤖 setup semantic-release
  • Loading branch information
JohanObrink authored Aug 29, 2019
2 parents 06de06a + 9e69fd2 commit cc33270
Show file tree
Hide file tree
Showing 4 changed files with 9,222 additions and 3,480 deletions.
12 changes: 12 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
["@semantic-release/git", {
"assets": ["package.json"],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}]
]
}
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# The jobs section declares jobs available in this build context
jobs:
include:
# lint and run tests
- stage: "lint-and-test"
name: "Lint, run tests"
language: node_js
install:
- npm ci
script:
- npm run testAndLint

- stage: publish
name: "Run semantic-release and publish a new version"
language: node_js
install:
- npm ci
script:
- npx semantic-release

# Flow control
# This section defines the order in which stages are run and when to run certain stages
stages:
- name: lint-and-test
if: branch != master AND tag IS NOT present
- name: publish
if: (branch = master AND type != pull_request)

notifications:
email:
on_success: never
on_failure: change
Loading

0 comments on commit cc33270

Please sign in to comment.