Browse Source

chore: Update publish workflow to use latest npm version

Michael Bromley 2 months ago
parent
commit
c1a144e9f7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      .github/workflows/publish_to_npm.yml

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

@@ -17,6 +17,9 @@ jobs:
         with:
         with:
           node-version: '22.x'
           node-version: '22.x'
           registry-url: 'https://registry.npmjs.org'
           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
       # Install dependencies without modifying package-lock.json file
       - run: npm install --no-save
       - run: npm install --no-save
       - run: npm run build
       - run: npm run build