Ver Fonte

ci: set retention days

Sv443 há 10 meses atrás
pai
commit
3007be41b4
2 ficheiros alterados com 6 adições e 2 exclusões
  1. 4 1
      .github/workflows/build.yml
  2. 2 1
      .github/workflows/lint.yml

+ 4 - 1
.github/workflows/build.yml

@@ -21,6 +21,8 @@ jobs:
     env:
       CI: "true"
       STORE_PATH: ""
+      PNPM_VERSION: 9
+      RETENTION_DAYS: 2
 
     steps:
       - name: Check out the repository
@@ -34,7 +36,7 @@ jobs:
       - name: Set up pnpm
         uses: pnpm/action-setup@v4
         with:
-          version: 9
+          version: ${{ env.PNPM_VERSION }}
           run_install: false
 
       - name: Get pnpm store directory
@@ -61,3 +63,4 @@ jobs:
         with:
           name: dist
           path: dist
+          retention-days: ${{ env.RETENTION_DAYS }}

+ 2 - 1
.github/workflows/lint.yml

@@ -19,6 +19,7 @@ jobs:
     env:
       CI: "true"
       STORE_PATH: ""
+      PNPM_VERSION: 9
 
     steps:
       - name: Check out the repository
@@ -32,7 +33,7 @@ jobs:
       - name: Set up pnpm
         uses: pnpm/action-setup@v4
         with:
-          version: 9
+          version: ${{ env.PNPM_VERSION }}
           run_install: false
 
       - name: Get pnpm store directory