Skip to content

Commit

Permalink
Shift installing of dependencies up in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Oct 6, 2024
1 parent 2355491 commit 1fa68fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/sst.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ jobs:
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.ROLE_TO_ASSUME }}
aws-region: ap-southeast-1
- name: Deploy app
run: |
pnpm install && pnpm sst deploy --stage dev
pnpm sst deploy --stage dev
4 changes: 3 additions & 1 deletion .github/workflows/sst.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ jobs:
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.ROLE_TO_ASSUME }}
aws-region: ap-southeast-1
- name: Deploy app
run: |
pnpm install && pnpm sst deploy --stage prod
pnpm sst deploy --stage prod
4 changes: 3 additions & 1 deletion .github/workflows/sst.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ jobs:
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.ROLE_TO_ASSUME }}
aws-region: ap-southeast-1
- name: Deploy app
run: |
pnpm install && pnpm sst deploy --stage staging
pnpm sst deploy --stage staging

0 comments on commit 1fa68fd

Please sign in to comment.