# HG changeset patch
# User Arnaud Vergnet <arnaud.vergnet@logilab.fr>
# Date 1650980295 -7200
#      Tue Apr 26 15:38:15 2022 +0200
# Node ID 2efa38a89dee06463b91a3b9e72f0fb2d9dc0474
# Parent  a1d9f381f8c0f178670d906137922203989c0a7b
fix: do not change js lock file when installing deps

diff --git a/templates/js-install.yml b/templates/js-install.yml
--- a/templates/js-install.yml
+++ b/templates/js-install.yml
@@ -2,7 +2,7 @@
   stage: install
   image: node:14-alpine
   script:
-    - '[ -e yarn.lock ] && yarn || npm i'
+    - '[ -e yarn.lock ] && yarn --frozen-lockfile || npm ci'
   artifacts:
     expire_in: 1 day
     paths: