Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #53 from adieuadieu/chore/release-automation
Browse files Browse the repository at this point in the history
chore: add release automation via semantic-release
  • Loading branch information
adieuadieu authored Apr 7, 2018
2 parents 9ef7f53 + 6d31cc5 commit a0dd26e
Show file tree
Hide file tree
Showing 5 changed files with 1,152 additions and 37 deletions.
23 changes: 20 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ jobs:
command: |
npm run test &&
./node_modules/.bin/nyc report --temp-directory=coverage --reporter=text-lcov | ./node_modules/.bin/coveralls
release:
docker:
- image: circleci/node:6@sha256:635b022773f0346704312a36d1ce4628e0676a8a2b04e76c15888b67deaeb182
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run: npm run prepublishOnly
- run: npm run semantic-release

#
# Workflows
#
Expand All @@ -54,11 +65,17 @@ workflows:

build_lint_test:
jobs:
- build

- build
- lint:
requires:
- build
- unit-test:
- unit-test:
requires:
- build
- release:
requires:
- lint
- unit-test
filters:
branches:
only: master
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Changelog
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,16 @@
"postversion": "git push --tags origin HEAD",
"prepublishOnly": "npm run lint && npm test && npm run security-check && npm run build",
"security-check": "nsp check",
"upgrade-dependencies": "yarn upgrade-interactive --latest --exact"
"upgrade-dependencies": "yarn upgrade-interactive --latest --exact",
"commitmsg": "commitlint -e $GIT_PARAMS",
"semantic-release": "semantic-release"
},
"dependencies": {
"aws-sdk": "2.221.1"
},
"devDependencies": {
"@commitlint/cli": "6.1.3",
"@commitlint/config-conventional": "6.1.3",
"@types/aws-lambda": "0.0.34",
"@types/jest": "22.2.2",
"@types/node": "9.6.2",
Expand All @@ -74,6 +78,7 @@
"rollup": "0.57.1",
"rollup-plugin-hashbang": "1.0.1",
"rollup-plugin-node-resolve": "3.3.0",
"semantic-release": "15.1.5",
"ts-jest": "22.4.2",
"tslint": "5.9.1",
"tslint-functional-preset": "1.0.2",
Expand All @@ -82,6 +87,11 @@
"peerDependencies": {
"aws-sdk": ">= 2.197.0"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"prettier": {
"printWidth": 80,
"semi": false,
Expand Down
8 changes: 5 additions & 3 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"extends": [
"config:base"
]
"extends": ["config:base"],
"automerge": false,
"major": {
"automerge": false
}
}
Loading

0 comments on commit a0dd26e

Please sign in to comment.