Skip to content

Commit

Permalink
chore: enable CI publish
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Dobbertin <[email protected]>
  • Loading branch information
aldeed committed Feb 27, 2020
1 parent 12aec91 commit a92cd9a
Showing 1 changed file with 39 additions and 10 deletions.
49 changes: 39 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,53 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
- image: node:12
steps:
- checkout
- run: npm ci
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

lint:
docker:
- image: node:12
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm run lint

deploy:
docker:
- image: circleci/node:12.14.1
working_directory: ~/repo
- image: node:12
steps:
- checkout
- run: npm install
# - run: npx semantic-release
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npx semantic-release

workflows:
version: 2
deploy:
build_deploy:
jobs:
- build:
context: reaction-publish-semantic-release
- lint:
requires:
- build
- deploy:
context: reaction-publish-semantic-release
requires:
- lint
filters:
branches:
only: trunk
only: trunk

0 comments on commit a92cd9a

Please sign in to comment.