Skip to content

Commit

Permalink
fix: update semantic release configuration to publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasthiebaud committed Sep 26, 2019
1 parent 299d42a commit 46faa49
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 34 deletions.
7 changes: 0 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ language: node_js
# Keep empty to use version from .nvmrc
node_js: null

cache:
directories:
- node_modules

install:
- npm ci

script:
- npm run lint
- npm rum test
Expand Down
20 changes: 12 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"devDependencies": {
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@semantic-release/changelog": "^3.0.4",
"@semantic-release/git": "^7.0.16",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.8",
Expand Down Expand Up @@ -63,30 +64,29 @@
"styles"
],
"release": {
"prepare": [
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"assets": [
"package.json",
"package-lock.json"
],
"message": "chore: ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
[
"@semantic-release/git",
{
"assets": [
"package.json",
"package-lock.json",
"CHANGELOG.md"
],
"message": "chore: release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
],
"publish": [
"@semantic-release/github",
"@semantic-release/npm"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
"preset": "angular"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS --extends @commitlint/config-conventional"
}
}
}

0 comments on commit 46faa49

Please sign in to comment.