message: chore: save cache on circle only on git tags
diff: @@ -30,8 +30,19 @@ jobs:
  ./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov
  curl -s https://codecov.io/bash | bash
  <%_ } _%>
  + node-8:
  + <<: *test
  + docker:
  + - image: node:8
  + cache:
  + <<: *test
  + steps:
  + - checkout
  + - run:
  + name: Install dependencies
  + command: yarn
  - save_cache:
  - key: v1-yarn-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
  + key: v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "<%- yarn ? 'yarn.lock' : 'package-lock.json' %>"}}
  paths:
  - ~/cli/node_modules
  <%_ if (yarn) { _%>
  @@ -41,13 +52,16 @@ jobs:
  - ~/.npm
  - /usr/local/lib/node_modules
  <%_ } _%>
  - node-8:
  - <<: *test
  - docker:
  - - image: node:8
  +
  workflows:
  version: 2
  "<%= pjson.name %>":
  jobs:
  - node-latest
  - node-8
  + - cache:
  + filters:
  + tags:
  + only: /^v.*/
  + branches:
  + ignore: /.*/
  