fix: do not install dev deps on release
MODIFY
templates/circle.yml.ejs
templates/circle.yml.ejs
@@ -15,7 +15,6 @@ jobs:
- image: node:latest
working_directory: ~/cli
environment:
- DEPS: "<%- deps %>"
<%_ if (mocha) { _%>
NYC: "yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc"
MOCHA_FILE: "reports/mocha.xml"
@@ -27,7 +26,7 @@ jobs:
- v0-yarn-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}}
- v0-yarn-{{checksum ".circleci/config.yml"}}
- run: .circleci/greenkeeper
- - run: yarn add -D $DEPS
+ - run: yarn add -D <%- deps %>
<%_ if (['single', 'multi'].includes(type)) { _%>
- run: ./bin/run -v
<%_ } _%>
@@ -59,8 +58,8 @@ jobs:
- add_ssh_keys
- checkout
- restore_cache: *restore_cache
- - run: yarn add -D $DEPS
- run: yarn global add @anycli/semantic-release@1 semantic-release@12
+ - run: yarn --frozen-lockfile
- run: |
export PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
semantic-release -e @anycli/semantic-release

fix: do not install dev deps on release