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

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