1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-02-22 00:04:56 +01:00

ci: Restore cache restoration to the build

This commit is contained in:
Trezy 2018-12-01 14:56:52 -06:00 committed by BcRikko
parent 2520af8afd
commit f426715dec

View File

@ -15,13 +15,13 @@ jobs:
<<: *defaults
steps:
# - restore_cache:
# name: Restore Repository Cache
# keys:
# - repo-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
# - repo-{{ .Branch }}
# - repo-master
# - repo-
- restore_cache:
name: Restore Repository Cache
keys:
- repo-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
- repo-{{ .Branch }}
- repo-master
- repo-
- checkout
@ -43,11 +43,11 @@ jobs:
- attach_workspace:
at: .
# - restore_cache:
# name: Restore npm Package Cache
# keys:
# - npm-{{ checksum "package-lock.json" }}
# - npm-
- restore_cache:
name: Restore npm Package Cache
keys:
- npm-{{ checksum "package-lock.json" }}
- npm-
- run:
name: Install Dependencies
@ -71,21 +71,13 @@ jobs:
- attach_workspace:
at: .
# - restore_cache:
# name: Restore Build Cache
# keys:
# - build-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
# - build-{{ .Branch }}
# - build-master
# - build-
# - run:
# name: Build the Application
# command: |
# if [[ ! -d .next ]]; then
# export PATH="$PATH:`yarn global bin`"
# yarn run build
# fi
- restore_cache:
name: Restore Build Cache
keys:
- build-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
- build-{{ .Branch }}
- build-master
- build-
- run:
name: Build the Framework