ci: use Liara mirror for dependency checks
This commit is contained in:
@@ -25,7 +25,10 @@ jobs:
|
|||||||
cache: npm
|
cache: npm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: |
|
||||||
|
npm ci \
|
||||||
|
--registry="https://package-mirror.liara.ir/repository/npm/" \
|
||||||
|
--replace-registry-host=registry.npmjs.org
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
@@ -40,7 +43,10 @@ jobs:
|
|||||||
run: npm test
|
run: npm test
|
||||||
|
|
||||||
- name: Audit production dependencies
|
- name: Audit production dependencies
|
||||||
run: npm audit --audit-level=high
|
run: |
|
||||||
|
npm audit \
|
||||||
|
--registry="https://package-mirror.liara.ir/repository/npm/" \
|
||||||
|
--audit-level=high
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy production
|
name: Deploy production
|
||||||
|
|||||||
Reference in New Issue
Block a user