Skip to content

Commit

Permalink
chore(release): add npm publish config to semantic-release (#188)
Browse files Browse the repository at this point in the history
* chore(release): add devDependencies on semantic release and plugins

* chore: add npm plugin for semantic release and publish config
  • Loading branch information
rcebulko committed Mar 17, 2020
1 parent d79e9d1 commit a5dc780
Show file tree
Hide file tree
Showing 4 changed files with 3,773 additions and 79 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ notifications:
script: yarn run-example
after_success:
# run automated release process with semantic-release
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" && "$TRAVIS_NODE_VERSION" == "stable"]]; then
npm i --no-save semantic-release@15 @semantic-release/changelog@3 @semantic-release/git@7;
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" && "$TRAVIS_NODE_VERSION" == "stable" ]]; then
semantic-release;
fi;

Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"type": "git",
"url": "git://github.com/karma-runner/karma-sauce-launcher.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"tag": "latest"
},
"engines": {
"node": ">= 10.0.0"
},
Expand All @@ -38,12 +42,16 @@
"devDependencies": {
"@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.3.4",
"@semantic-release/changelog": "5.0.0",
"@semantic-release/git": "9.0.0",
"@semantic-release/npm": "7.0.4",
"@types/node": "^10.12.10",
"@types/selenium-webdriver": "^3.0.13",
"husky": "4.2.3",
"jasmine": "^3.3.0",
"karma": "^3.1.1",
"karma-jasmine": "^2.0.1",
"semantic-release": "17.0.4",
"typescript": "^3.1.6"
},
"contributors": [
Expand Down
9 changes: 6 additions & 3 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ module.exports = {
branches: 'master',
verifyConditions: [
'@semantic-release/changelog',
'@semantic-release/github'
'@semantic-release/github',
'@semantic-release/npm'
],
prepare: [
'@semantic-release/changelog',
'@semantic-release/git'
'@semantic-release/git',
'@semantic-release/npm'
],
publish: [
'@semantic-release/github'
'@semantic-release/github',
'@semantic-release/npm'
],
success: [
'@semantic-release/github'
Expand Down

0 comments on commit a5dc780

Please sign in to comment.