diff --git a/.forgejo/workflows/deploy-preprod.yml b/.forgejo/workflows/deploy-preprod.yml index 441c01b..3a842dc 100644 --- a/.forgejo/workflows/deploy-preprod.yml +++ b/.forgejo/workflows/deploy-preprod.yml @@ -13,13 +13,9 @@ jobs: image: forgejo-ci-node:latest steps: - name: Checkout code - uses: actions/checkout@v4 - - - name: Cache node modules - uses: actions/cache@v4 - with: - path: node_modules - key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} + run: | + git clone --depth 1 --branch preprod https://forge.studio-variable.com/${{ github.repository }}.git . + ls -la - name: Install npm dependencies run: npm install diff --git a/.forgejo/workflows/deploy-prod.yml b/.forgejo/workflows/deploy-prod.yml index 4943bb2..e4084d6 100644 --- a/.forgejo/workflows/deploy-prod.yml +++ b/.forgejo/workflows/deploy-prod.yml @@ -13,13 +13,9 @@ jobs: image: forgejo-ci-node:latest steps: - name: Checkout code - uses: actions/checkout@v4 - - - name: Cache node modules - uses: actions/cache@v4 - with: - path: node_modules - key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} + run: | + git clone --depth 1 --branch main https://forge.studio-variable.com/${{ github.repository }}.git . + ls -la - name: Install npm dependencies run: npm install