diff --git a/.github/workflows/__package.yml b/.github/workflows/__package.yml index d87640a14d5..f8534fbb88a 100644 --- a/.github/workflows/__package.yml +++ b/.github/workflows/__package.yml @@ -64,6 +64,7 @@ jobs: with: node-version: 20 check-latest: true + cache: 'npm' - name: Install npm dependencies 📦 run: npm ci --no-audit @@ -182,8 +183,11 @@ jobs: context: . file: packaging/docker/Dockerfile platforms: ${{ format('linux/{0}', matrix.platform) }} - no-cache: true - cache-to: type=local,mode=min,dest=/tmp/${{ env.REGISTRY_IMAGE }}/cache/${{ matrix.platform }} + cache-from: | + type=gha,scope=buildx-${{ matrix.platform }} + cache-to: | + type=local,mode=min,dest=/tmp/${{ env.REGISTRY_IMAGE }}/cache/${{ matrix.platform }} + type=gha,mode=min,ignore-error=true,scope=buildx-${{ matrix.platform }} outputs: type=docker,dest=docker_image.tar build-args: | ${{ inputs.commit == '' && 'IS_STABLE=1' || '' }} diff --git a/.github/workflows/__quality_checks.yml b/.github/workflows/__quality_checks.yml index b532b79713c..a976c6ec282 100644 --- a/.github/workflows/__quality_checks.yml +++ b/.github/workflows/__quality_checks.yml @@ -53,6 +53,7 @@ jobs: with: node-version: 20 check-latest: true + cache: 'npm' - name: Install dependencies 📦 run: npm ci --no-audit