Преглед изворни кода

chore: Prevent modification of lockfile in publish workflow

Michael Bromley пре 9 месеци
родитељ
комит
5434f3eca3
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      .github/workflows/publish_to_npm.yml

+ 2 - 1
.github/workflows/publish_to_npm.yml

@@ -16,7 +16,8 @@ jobs:
         with:
           node-version: '22.x'
           registry-url: 'https://registry.npmjs.org'
-      - run: npm install
+      # Install  dependencies without modifying package-lock.json file
+      - run: npm install --no-save
       - run: npm run build
       - run: lerna publish from-package --yes
         env: