Browse Source

ci: use `npmAuditRegistry` instead of `--registry`

Bryan Lee 2 years ago
parent
commit
fdbfed9006
2 changed files with 4 additions and 1 deletions
  1. 1 1
      .github/workflows/lint.yml
  2. 3 0
      .yarnrc.yml

+ 1 - 1
.github/workflows/lint.yml

@@ -37,7 +37,7 @@ jobs:
           key: npm-cache-lint-node@16
 
       - name: Install dependencies
-        run: yarn install --immutable --registry https://registry.npmjs.org --network-timeout 300000
+        run: yarn install --immutable --network-timeout 300000
 
       - name: ESLint
         run: yarn lint

+ 3 - 0
.yarnrc.yml

@@ -1,3 +1,6 @@
 nodeLinker: node-modules
 
+npmAuditRegistry: "https://registry.npmjs.org"
+
 yarnPath: .yarn/releases/yarn-3.3.0.cjs
+