From 99d76f694419706b89b60caeec11b59220ad74ec Mon Sep 17 00:00:00 2001 From: RikThePixel Date: Wed, 10 Jan 2024 11:32:36 +0100 Subject: [PATCH 1/2] Better specify when to run frontend pull-request ci --- .github/workflows/pull-request-frontend.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull-request-frontend.yml b/.github/workflows/pull-request-frontend.yml index 0942d73..debb09c 100644 --- a/.github/workflows/pull-request-frontend.yml +++ b/.github/workflows/pull-request-frontend.yml @@ -1,16 +1,15 @@ name: Pull Request Frontend on: - push: - branches: [main, development] - paths: - - "apps/frontend/**" pull_request: branches: [main, development] + types: + - "opened" + - "reopened" + - "synchronize" + - "closed" paths: - "apps/frontend/**" - release: - types: [created] concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.sha }} From 0eb433c47a965a6f860b0e3d52e7b73b8fcb9f00 Mon Sep 17 00:00:00 2001 From: RikThePixel Date: Wed, 10 Jan 2024 11:33:36 +0100 Subject: [PATCH 2/2] Specify frontend deployment environment --- .github/workflows/release-frontend.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-frontend.yml b/.github/workflows/release-frontend.yml index c424db0..449a62a 100644 --- a/.github/workflows/release-frontend.yml +++ b/.github/workflows/release-frontend.yml @@ -13,6 +13,7 @@ concurrency: jobs: build-and-deploy: runs-on: ubuntu-latest + environment: production steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3