Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
feat(build): add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunnerLivio committed Nov 2, 2018
1 parent 19dd592 commit f6bcf80
Show file tree
Hide file tree
Showing 5 changed files with 2,306 additions and 262 deletions.
23 changes: 8 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
version: 2

jobs:
build:
machine: true
Expand All @@ -18,12 +17,13 @@ jobs:
docker:
- image: circleci/node:8.9.1
steps:
- checkout
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
name: install
command: npm install
- run:
name: Publish package
command: npm publish
name: release
command: npm run semantic-release || true

docker_deploy:
machine: true
Expand All @@ -49,21 +49,14 @@ workflows:
- test
- npm_deploy:
requires:
- test
- build
filters:
branches:
ignore: /.*/
tags:
# Semantic Versioning
only: /.*/
- test
- docker_deploy:
requires:
- test
- build
- test
filters:
branches:
ignore: /.*/
tags:
# Semantic Versioning
only: /.*/
only: /^.*/
10 changes: 10 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/git", {
"assets": ["dist/**/*.{js,css}", "docs", "package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}]
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
},
"search.exclude": {
"**/docs": true
},
"files.associations": {
".releaserc": "json"
}
}
Loading

0 comments on commit f6bcf80

Please sign in to comment.