From 1fa68fda9d7675c1518ace49733aac4f08f9e462 Mon Sep 17 00:00:00 2001 From: Ru Chern Chong Date: Sun, 6 Oct 2024 15:46:16 +0800 Subject: [PATCH] Shift installing of dependencies up in workflow --- .github/workflows/sst.dev.yml | 4 +++- .github/workflows/sst.prod.yml | 4 +++- .github/workflows/sst.staging.yml | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sst.dev.yml b/.github/workflows/sst.dev.yml index edf8967..315446a 100644 --- a/.github/workflows/sst.dev.yml +++ b/.github/workflows/sst.dev.yml @@ -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 diff --git a/.github/workflows/sst.prod.yml b/.github/workflows/sst.prod.yml index 3ce2568..d7d8170 100644 --- a/.github/workflows/sst.prod.yml +++ b/.github/workflows/sst.prod.yml @@ -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 diff --git a/.github/workflows/sst.staging.yml b/.github/workflows/sst.staging.yml index aaba328..0595f3a 100644 --- a/.github/workflows/sst.staging.yml +++ b/.github/workflows/sst.staging.yml @@ -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