Skip to content

Commit

Permalink
Use Yarn's networkSettings to replace lockfile-lint (thanks @merceyz)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed May 12, 2021
1 parent 044ed72 commit b04ee47
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b04ee47

Please sign in to comment.