Skip to content

Commit

Permalink
Mooreds/update astro deployment use cache v3 (#2369)
Browse files Browse the repository at this point in the history
* Use cache, specify node version.

This allows us to cache the npm installation, making the deploy a bit quicker.

It also specifies use of the node LTS version

* Update node to version we use locally.

* roll cache to dev envt as well

* fixing gh action

* fixing gh action, v3
  • Loading branch information
mooreds authored Jul 28, 2023
1 parent d9310d7 commit 2593474
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/dev-astro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ jobs:
role-to-assume: ${{ env.PUBLISHER_ROLE_ARN }}
role-session-name: site_publisher_session
aws-region: ${{ env.AWS_REGION }}
- name: Install modules
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
cache-dependency-path: 'astro/package-lock.json'
- name: Install modules
run: npm ci
- name: Build application
run: npm run build
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/prod-astro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ jobs:
role-to-assume: ${{ env.PUBLISHER_ROLE_ARN }}
role-session-name: site_publisher_session
aws-region: ${{ env.AWS_REGION }}
- name: Install modules
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
cache-dependency-path: 'astro/package-lock.json'
- name: Install modules
run: npm ci
- name: Build application
run: npm run build
Expand Down

0 comments on commit 2593474

Please sign in to comment.