From d1e331b1e25418b94c71538aab9b4eda5c4ac00a Mon Sep 17 00:00:00 2001 From: guzhongren Date: Thu, 29 Aug 2024 12:24:44 +0800 Subject: [PATCH] fix ci --- .github/workflows/build-and-deploy.yml | 4 ++-- ops/check.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index e5dca4f55..a3b69d4fe 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -172,7 +172,7 @@ jobs: - name: Install & Lint run: | npm install -g pnpm - pnpm install --no-frozen-lockfile + pnpm install --no-frozen-lockfile --ignore-scripts pnpm run type-check frontend-check: @@ -189,7 +189,7 @@ jobs: - name: Install & Lint run: | npm install -g pnpm - pnpm install --no-frozen-lockfile + pnpm install --no-frozen-lockfile --ignore-scripts pnpm lint - name: Audit for vulnerabilities run: pnpm dlx audit-ci@^6 --critical --report-type full diff --git a/ops/check.sh b/ops/check.sh index a41ad1c48..8977d4ef1 100755 --- a/ops/check.sh +++ b/ops/check.sh @@ -50,7 +50,7 @@ backend_license_check() { frontend_license_check() { cd frontend - npm install --force + npm install --force --ignore-scripts npm run license-compliance } @@ -64,7 +64,7 @@ backend_check() { frontend_check() { cd frontend pnpm dlx audit-ci@^6 --config ./audit-ci.jsonc - pnpm install --no-frozen-lockfile + pnpm install --no-frozen-lockfile --ignore-scripts pnpm lint pnpm coverage:silent bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r ./coverage/clover.xml @@ -293,7 +293,7 @@ e2e_check() { export TZ=Asia/Shanghai npm install -g pnpm cd frontend - pnpm install --no-frozen-lockfile + pnpm install --no-frozen-lockfile --ignore-scripts case "$project" in "Google Chrome") echo "Installing Chrome browser"