Commit 67743df

Anton Golub <antongolub@antongolub.com>
2025-08-20 14:56:34
ci: replace direct npm flags with env presets (#1327) tag: 8.8.1
* ci: replace direct npm flags with env presets * ci: update `test:audit` script
1 parent 3327857
.github/workflows/dev-publish.yml
@@ -5,6 +5,10 @@ on:
 
 permissions: {}
 
+env:
+  npm_config_audit: false
+  npm_config_fund: false
+
 jobs:
   build:
     runs-on: ubuntu-latest
.github/workflows/docs.yml
@@ -10,6 +10,12 @@ concurrency:
 
 permissions: {}
 
+env:
+  npm_config_audit: false
+  npm_config_fund: false
+  npm_config_save: false
+  npm_config_package_lock: false
+
 jobs:
   deploy:
     permissions:
@@ -34,7 +40,7 @@ jobs:
         run: npm ci
 
       - name: Add additional deps
-        run: npm i --no-save @rollup/rollup-linux-x64-gnu@4.46.4
+        run: npm i @rollup/rollup-linux-x64-gnu@4.46.4
 
       - name: Build docs
         run: npm run docs:build
.github/workflows/publish.yml
@@ -7,6 +7,10 @@ on:
 
 permissions: {}
 
+env:
+  npm_config_audit: false
+  npm_config_fund: false
+
 jobs:
   build:
     runs-on: ubuntu-latest
.github/workflows/test.yml
@@ -9,6 +9,12 @@ on:
 permissions:
   contents: read
 
+env:
+  npm_config_audit: false
+  npm_config_fund: false
+  npm_config_save: false
+  npm_config_package_lock: false
+
 jobs:
   build:
     runs-on: ubuntu-latest
@@ -271,10 +277,10 @@ jobs:
       - name: Install deps
         run: npm ci
       - name: Install TypeScript ${{ matrix.ts }}
-        run: npm i --force --no-save --no-package-lock typescript@${{ matrix.ts }}
+        run: npm i --force typescript@${{ matrix.ts }}
       - name: Override @types/node
         if: matrix.ts == 4
-        run: npm i --force --no-save --no-package-lock @types/node@24.2.0
+        run: npm i --force @types/node@24.2.0
 
       - uses: actions/download-artifact@v4
         with:
package.json
@@ -95,7 +95,7 @@
     "test:circular": "madge --circular src/*",
     "test:types": "tsd",
     "test:license": "node ./test/extra.test.js",
-    "test:audit": "npm audit fix",
+    "test:audit": "npm audit --package-lock",
     "test:size": "size-limit",
     "test:smoke:strip-types": "node --experimental-strip-types test/smoke/ts.test.ts",
     "test:smoke:tsx": "tsx test/smoke/ts.test.ts",