Sfoglia il codice sorgente

chore: Prevent modification of lockfile in publish workflow

Michael Bromley 8 mesi fa
parent
commit
5434f3eca3
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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: