Skip to content

Commit 904d6a4

Browse files
committed
chore(circleci): add a way to update lockfile
1 parent 088f4b8 commit 904d6a4

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.circleci/config.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,36 @@ version: 2
66
jobs:
77
build:
88
docker:
9-
# specify the version you desire here
10-
- image: circleci/node:7.10
11-
12-
# Specify service dependencies here if necessary
13-
# CircleCI maintains a library of pre-built images
14-
# documented at https://circleci.com/docs/2.0/circleci-images/
15-
# - image: circleci/mongo:3.4.4
16-
17-
working_directory: ~/repo
9+
- image: circleci/node:9-browsers
1810

1911
steps:
2012
- checkout
2113

22-
# Download and cache dependencies
2314
- restore_cache:
2415
keys:
25-
- v1-dependencies-{{ checksum "package.json" }}
16+
- dependencies-{{ checksum "package-lock.json" }}
2617
# fallback to using the latest cache if no exact match is found
27-
- v1-dependencies-
18+
- dependencies-
19+
20+
- run:
21+
name: Install Dependencies
22+
command: npm i
23+
24+
- run:
25+
name: Install Greenkeeper-lockfile
26+
command: npm i greenkeeper-lockfile@1
2827

29-
- run: npm i
28+
- run:
29+
name: Update the lockfile
30+
command: npx greenkeeper-lockfile-update
3031

3132
- save_cache:
3233
paths:
3334
- node_modules
34-
key: v1-dependencies-{{ checksum "package.json" }}
35-
36-
# run tests!
35+
key: dependencies-{{ checksum "package-lock.json" }}
36+
3737
- run: npm test
38+
39+
- run:
40+
name: Commit lockfile changes
41+
command: npx greenkeeper-lockfile-upload

0 commit comments

Comments
 (0)