Skip to content

Commit

Permalink
[DOP-4334]: Cache node_modules first
Browse files Browse the repository at this point in the history
  • Loading branch information
branberry committed Feb 21, 2024
1 parent 40e118c commit 9ca45d5
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/deploy-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Install node_modules
run: |
npm ci
cd cdk-infra/
npm ci
- name: Cache root node_modules
id: cache-root
uses: actions/cache@v3
with:
path: |
node_modules
cdk-infra/node_modules
key: ${{ github.head_ref }}

- name: Deploy Feature Branch Infrastructure
run: |
npm ci
Expand All @@ -34,11 +48,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
STAGE: dotcomstg
- name: Cache root node_modules
id: cache-root
uses: actions/cache@v3
with:
path: |
node_modules
cdk-infra/node_modules
key: ${{ github.head_ref }}

0 comments on commit 9ca45d5

Please sign in to comment.