diff --git a/templates/js-install.yml b/templates/js-install.yml
index a1d9f381f8c0f178670d906137922203989c0a7b_dGVtcGxhdGVzL2pzLWluc3RhbGwueW1s..2efa38a89dee06463b91a3b9e72f0fb2d9dc0474_dGVtcGxhdGVzL2pzLWluc3RhbGwueW1s 100644
--- 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: