浏览代码

CI: disable pnpm stupid supply chain protection

SukkaW 2 周之前
父节点
当前提交
0172c7bc91
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 1 0
      .github/workflows/check-source-domain.yml
  2. 4 3
      .github/workflows/main.yml

+ 1 - 0
.github/workflows/check-source-domain.yml

@@ -47,6 +47,7 @@ jobs:
             ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-
             ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-
             ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-
             ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-
             ${{ runner.os }}-v3-
             ${{ runner.os }}-v3-
+      - run: pnpm config set --location=global minimumReleaseAge 0
       - run: pnpm install
       - run: pnpm install
       - run: pnpm run node Build/validate-domain-alive.ts
       - run: pnpm run node Build/validate-domain-alive.ts
         env:
         env:

+ 4 - 3
.github/workflows/main.yml

@@ -5,8 +5,8 @@ on:
       - master
       - master
   pull_request:
   pull_request:
   schedule:
   schedule:
-    - cron: '17 5 * * *'  # Runs at 05:17 UTC
-    - cron: '17 17 * * *' # Runs at 17:17 UTC
+    - cron: "17 5 * * *" # Runs at 05:17 UTC
+    - cron: "17 17 * * *" # Runs at 17:17 UTC
   workflow_dispatch:
   workflow_dispatch:
 
 
 concurrency:
 concurrency:
@@ -83,6 +83,7 @@ jobs:
             ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-
             ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-
             ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-
             ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-
             ${{ runner.os }}-v3-
             ${{ runner.os }}-v3-
+      - run: pnpm config set --location=global minimumReleaseAge 0
       - run: pnpm install
       - run: pnpm install
       - run: pnpm run build
       - run: pnpm run build
         env:
         env:
@@ -152,7 +153,7 @@ jobs:
     # matrix is a tricky way to define a variable directly in the action yaml
     # matrix is a tricky way to define a variable directly in the action yaml
     strategy:
     strategy:
       matrix:
       matrix:
-        wranglerVersion: ['3.114.12']
+        wranglerVersion: ["3.114.12"]
     steps:
     steps:
       - name: Get NPM cache directory path
       - name: Get NPM cache directory path
         id: npm_cache_path
         id: npm_cache_path