-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from egendata/ci/travis
chore: 🤖 setup semantic-release
- Loading branch information
Showing
4 changed files
with
9,222 additions
and
3,480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" | ||
}] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.