Skip to content

Commit

Permalink
feat: add semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
nachomazzara committed Apr 12, 2019
1 parent f817fca commit cfb18db
Show file tree
Hide file tree
Showing 4 changed files with 7,627 additions and 1,038 deletions.
72 changes: 72 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:10.2-stretch

working_directory: ~/repo

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run:
name: Install packages
command: npm install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package-lock.json" }}

# run tests!
- run:
name: Run tests
command: npm run test
release:
docker:
# specify the version you desire here
- image: circleci/node:10.2-stretch

working_directory: ~/repo

steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run:
name: Install packages
command: npm install

# Compile contracts!
- run:
name: Compile contracts
command: npm run compile

- run:
name: Semantic release
command: npm run semantic-release

workflows:
version: 2
test-build-release:
jobs:
- build
- release:
requires:
- build
filters:
branches:
only:
- master
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
migrations
test
zos.*
scripts
flow-typed
Loading

0 comments on commit cfb18db

Please sign in to comment.