Skip to content

Commit d89ab33

Browse files
committed
ci install of dependencies from fixed package-lock.json versions
1 parent 87d532c commit d89ab33

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.circleci/config.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# Note: YAML anchors allow an object to be re-used, reducing duplication. The ampersand
2-
# declares an alias for an object, then later the `<<: *alias` syntax dereferences it.
3-
#
4-
# See http://blog.daemonl.com/2016/02/yaml.html and
5-
# https://medium.com/@kinghuang/docker-compose-anchors-aliases-extensions-a1e4105d70bd
6-
# for more information about how to use anchors.
7-
#
8-
# To validate changes use an online parser, eg. http://yaml-online-parser.appspot.com/
91
anchors:
102
container-config: &container-config
113
docker:
@@ -15,7 +7,7 @@ anchors:
157

168
load-cache: &load-cache
179
restore_cache:
18-
key: dependency-cache-{{ checksum "package.json" }}
10+
key: dependency-cache-{{ checksum "package-lock.json" }}
1911

2012
## Circle CI configuration, see https://circleci.com/docs/2.0/configuration-reference/
2113
version: 2
@@ -27,9 +19,9 @@ jobs:
2719
- *load-cache
2820
- run:
2921
name: Install dependencies
30-
command: npm i
22+
command: npm ci
3123
- save_cache:
32-
key: dependency-cache-{{ checksum "package.json" }}
24+
key: dependency-cache-{{ checksum "package-lock.json" }}
3325
paths:
3426
- node_modules
3527

0 commit comments

Comments
 (0)