Skip to content

Commit

Permalink
feat: uncomment automatic release (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
nachomazzara authored and nicosantangelo committed Aug 22, 2018
1 parent 490d3b1 commit a74c13a
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ jobs:
- "."
key: dist-{{ .Revision }}

# deploy:
# docker:
# - image: circleci/node:8
deploy:
docker:
- image: circleci/node:8

# working_directory: ~/repo
working_directory: ~/repo

# steps:
# - restore_cache:
# keys:
# - dist-{{ .Revision }}
# # semantic-release requires node >= 8.3 and the latest version available at circle-ci is node 7.10
# # they recommend using npx to install node 8 and then use it to run semantic-release (https://github.com/semantic-release/semantic-release/blob/caribou/docs/support/node-version.md)
# # since node 7.10 comes with npm 4 and npx is only available on npm >= 5 it has to be installed first, and run from the local node_modules
# # TODO: we should replace the following line with just "npm run semantic-release" once there's a node:8 image available at circle-ci
# - run: npm install npx && node_modules/npx/index.js -p node@8 -c "npx semantic-release"
steps:
- restore_cache:
keys:
- dist-{{ .Revision }}
# semantic-release requires node >= 8.3 and the latest version available at circle-ci is node 7.10
# they recommend using npx to install node 8 and then use it to run semantic-release (https://github.com/semantic-release/semantic-release/blob/caribou/docs/support/node-version.md)
# since node 7.10 comes with npm 4 and npx is only available on npm >= 5 it has to be installed first, and run from the local node_modules
# TODO: we should replace the following line with just "npm run semantic-release" once there's a node:8 image available at circle-ci
- run: npm install npx && node_modules/npx/index.js -p node@8 -c "npx semantic-release"

# # Build the docs only on deployments
# - run: mkdir -m 700 ~/.ssh
Expand All @@ -72,9 +72,9 @@ workflows:
build-deploy:
jobs:
- build
# - deploy:
# requires:
# - build
# filters:
# branches:
# only: master
- deploy:
requires:
- build
filters:
branches:
only: master

0 comments on commit a74c13a

Please sign in to comment.