Skip to content

Commit

Permalink
fix: no more cache during CIrcleCI Build
Browse files Browse the repository at this point in the history
  • Loading branch information
emyann committed Sep 23, 2018
1 parent 15335c7 commit 4582cfc
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,26 @@ jobs:
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm install
- run: npm run build
- run: npm test
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package-lock.json" }}
test-job-10:
docker:
- image: circleci/node:10-browsers
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm install
- run: npm run build
- run: npm test
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package-lock.json" }}

publish-job:
docker:
- image: circleci/node:10
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm install
- run:
name: Pre-Publish Script
command: ./tools/publish.sh
Expand Down

0 comments on commit 4582cfc

Please sign in to comment.