Skip to content

Commit

Permalink
feat(config): add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSingleton committed Sep 14, 2019
1 parent 5d309d9 commit d677376
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
24 changes: 21 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm i
- save_cache:
paths:
Expand All @@ -24,3 +24,21 @@ jobs:
- persist_to_workspace:
root: ~/repo
paths: .
release:
docker:
- image: circleci/node:10.16.3
steps:
- checkout
- run: npm install
- run: npm run build
- run: npx semantic-release

workflows:
version: 2
test_and_release:
# Run the test jobs first, then the release only when all the test jobs are successful
jobs:
- build
- release:
requires:
- build
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] }
module.exports = { extends: ['@commitlint/config-conventional'] };
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"rollup-plugin-commonjs": "10.1.0",
"rollup-plugin-node-resolve": "5.2.0",
"rollup-plugin-terser": "5.1.2",
"semantic-release": "^15.13.24",
"yargs": "14.0.0"
},
"peerDependencies": {
Expand Down

0 comments on commit d677376

Please sign in to comment.