From b04ee47792788c56812c86d84cc31b6a2b4736f7 Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Tue, 4 May 2021 09:34:27 +1200 Subject: [PATCH] Use Yarn's networkSettings to replace lockfile-lint (thanks @merceyz) --- .github/workflows/main.yml | 2 -- .yarnrc.yml | 9 +++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc35686431..793214c152 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,8 +22,6 @@ jobs: - name: Lint run: | yarn run lint --no-fix - # blocked by https://github.com/lirantal/lockfile-lint/issues/101 - # DEBUG="lockfile-lint,validate-host-manager" npx lockfile-lint --path yarn.lock --validate-https --allowed-hosts npm --allowed-hosts registry.yarnpkg.com - name: Test run: | yarn run coverage:unit diff --git a/.yarnrc.yml b/.yarnrc.yml index 90e282d002..2b422cd314 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,3 +1,12 @@ nodeLinker: node-modules yarnPath: .yarn/releases/yarn-3.0.0-rc.2.cjs + +enableNetwork: false +enableStrictSsl: true + +networkSettings: + "registry.yarnpkg.com": + enableNetwork: true + "registry.npmjs.org": + enableNetwork: true