Browse Source

Merge pull request #314 from liby/chore/use-yarn-install-immutable-and-npm-registry-server

ci: use --immutable instead of --frozen-lockfile
LongYinan 2 năm trước cách đây
mục cha
commit
818deee7fd
2 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 2 2
      .github/workflows/lint.yml
  2. 3 0
      .yarnrc.yml

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

@@ -36,8 +36,8 @@ jobs:
           path: node_modules
           path: node_modules
           key: npm-cache-lint-node@16
           key: npm-cache-lint-node@16
 
 
-      - name: 'Install dependencies'
-        run: yarn install --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000
+      - name: Install dependencies
+        run: yarn install --immutable --network-timeout 300000
 
 
       - name: ESLint
       - name: ESLint
         run: yarn lint
         run: yarn lint

+ 3 - 0
.yarnrc.yml

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