diff --git a/.github/workflows/clean-feature-branch.yml b/.github/workflows/clean-feature-branch.yml index 6b495329a..22d2ea122 100644 --- a/.github/workflows/clean-feature-branch.yml +++ b/.github/workflows/clean-feature-branch.yml @@ -29,3 +29,5 @@ jobs: auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-worker \ auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-queues \ auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-webhooks + - name: Delete cache + run: gh cache delete ${{github.head_ref}} diff --git a/.github/workflows/deploy-feature-branch.yml b/.github/workflows/deploy-feature-branch.yml index 764c90c83..1da880844 100644 --- a/.github/workflows/deploy-feature-branch.yml +++ b/.github/workflows/deploy-feature-branch.yml @@ -32,4 +32,12 @@ jobs: - name: Get Webhook URL uses: mongodb/docs-worker-actions/comment-pr@main env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Cache root node_modules + id: cache-root + uses: actions/cache@v3 + with: + path: | + node_modules + cdk-infra/node_modules + key: ${{ github.head_ref }} \ No newline at end of file diff --git a/.github/workflows/update-feature-branch.yml b/.github/workflows/update-feature-branch.yml index 1f247fe3c..e0e955fd2 100644 --- a/.github/workflows/update-feature-branch.yml +++ b/.github/workflows/update-feature-branch.yml @@ -27,7 +27,7 @@ jobs: - 'package-lock.json' - 'cdk-infra/package-lock.json' - name: Install dependencies - if: steps.filter.outputs.dependencies == 'true' || (github.event_name == 'pull_request' && github.event.action == 'opened') + if: steps.filter.outputs.dependencies == 'true' run: | npm ci cd cdk-infra/