From bf42c056e2b2f5e931636444c82dede2db9e4459 Mon Sep 17 00:00:00 2001 From: Luke Shay Date: Fri, 15 Sep 2023 14:53:35 -0500 Subject: [PATCH] chore: fix deploy workflows --- .github/workflows/cd-dev.yml | 4 ++-- .github/workflows/cd-prod.yml | 2 +- .github/workflows/deploy.yml | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd-dev.yml b/.github/workflows/cd-dev.yml index 81f9fb1..d8582bd 100644 --- a/.github/workflows/cd-dev.yml +++ b/.github/workflows/cd-dev.yml @@ -1,4 +1,4 @@ -name: CD +name: CD - Dev on: workflow_run: @@ -27,7 +27,7 @@ jobs: uses: ./.github/workflows/deploy.yml with: environment_name: development - environment_url: https://dev.astro-aws.org/ + environment_url: https://static.dev.astro-aws.org/ stack_environment: DEV secrets: inherit deploy-dev-ssr: diff --git a/.github/workflows/cd-prod.yml b/.github/workflows/cd-prod.yml index ba7847c..ca0d617 100644 --- a/.github/workflows/cd-prod.yml +++ b/.github/workflows/cd-prod.yml @@ -1,4 +1,4 @@ -name: CD +name: CD - Prod on: workflow_dispatch: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 78e01c7..d8d5e6c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,11 @@ on: required: false type: string default: "18" + pnpm_version: + description: The version of PNPM to use + required: false + type: string + default: "8.7.5" stack_environment: description: The stack environment to deploy required: true @@ -83,7 +88,7 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - uses: pnpm/action-setup@v2 with: - version: "8.7.5" + version: ${{ inputs.pnpm_version }} - uses: actions/setup-node@v3 with: node-version: ${{ inputs.node_version }}