Răsfoiți Sursa

chore: Update publish workflow to use latest npm version

Michael Bromley 2 luni în urmă
părinte
comite
c1a144e9f7
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      .github/workflows/publish_to_npm.yml

+ 3 - 0
.github/workflows/publish_to_npm.yml

@@ -17,6 +17,9 @@ jobs:
         with:
           node-version: '22.x'
           registry-url: 'https://registry.npmjs.org'
+      # Ensure npm 11.5.1 or later is installed
+      - name: Update npm
+        run: npm install -g npm@latest
       # Install dependencies without modifying package-lock.json file
       - run: npm install --no-save
       - run: npm run build