parameters:
  version:
    type: string
  cache-name:
    type: string
  lockfile-parent-path:
    type: string
    default: .
  path:
    type: string

steps:
  - save_cache:
      key: << parameters.version >>-node14-<< parameters.cache-name >>-{{ arch }}-{{ checksum "<<parameters.lockfile-parent-path>>/yarn.lock" }}
      paths:
        - << parameters.path >>
