Skip to content

Commit

Permalink
Merge pull request #122 from birtles/semantic-release
Browse files Browse the repository at this point in the history
chore: setup semantic-release
  • Loading branch information
johnjbarton authored Oct 20, 2020
2 parents 2524659 + da6cf7e commit 6118339
Show file tree
Hide file tree
Showing 5 changed files with 4,000 additions and 871 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ services:
- xvfb

script:
- npm run lint
- npm test
- yarn lint
- yarn test

addons:
firefox: 'latest'
Expand All @@ -21,3 +21,8 @@ addons:
- ubuntu-toolchain-r-test
packages:
- g++-4.8

after_success:
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" && "$TRAVIS_NODE_VERSION" == "stable" ]]; then
semantic-release;
fi;
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] }
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "index.js",
"scripts": {
"lint": "standard",
"release": "standard-version",
"test": "karma start --single-run"
},
"repository": {
Expand All @@ -22,11 +21,17 @@
"author": "Vojta Jina <[email protected]>",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/npm": "^7.0.6",
"husky": "^4.3.0",
"karma": "^4.2.0",
"karma-mocha": "^1.3.0",
"mocha": "^6.2.0",
"standard": "^13.1.0",
"standard-version": "^8.0.1"
"semantic-release": "^17.2.1",
"standard": "^14.3.4"
},
"contributors": [
"Alex Zaslavsky <[email protected]>",
Expand Down Expand Up @@ -54,5 +59,10 @@
"dependencies": {
"is-wsl": "^2.2.0",
"which": "^2.0.1"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
21 changes: 21 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
debug: true,
branches: 'master',
verifyConditions: [
'@semantic-release/changelog',
'@semantic-release/github',
'@semantic-release/npm'
],
prepare: [
'@semantic-release/changelog',
'@semantic-release/git',
'@semantic-release/npm'
],
publish: [
'@semantic-release/github',
'@semantic-release/npm'
],
success: [
'@semantic-release/github'
]
}
Loading

0 comments on commit 6118339

Please sign in to comment.