fix: only use yarn in circle config if selected as option
MODIFY
templates/circle.yml.ejs
templates/circle.yml.ejs
@@ -13,7 +13,7 @@ jobs:
- v1-npm-{{checksum ".circleci/config.yml"}}
- run:
name: Install dependencies
- command: yarn
+ command: <%- yarn ? 'yarn' : 'npm ci' %>
<%_ if (['single', 'multi'].includes(type)) { _%>
- run: ./bin/run --version
<%_ } _%>
@@ -44,7 +44,7 @@ jobs:
- checkout
- run:
name: Install dependencies
- command: yarn
+ command: <%- yarn ? 'yarn' : 'npm ci' %>
- save_cache:
key: v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "<%- yarn ? 'yarn.lock' : 'package-lock.json' %>"}}
paths:

fix: only use yarn in circle config if selected as option (#298)