From 426b887ed36b701a29e303c06ed558cdb8e6b238 Mon Sep 17 00:00:00 2001 From: Wesley Souza | Neo Date: Mon, 6 Jan 2025 02:21:28 -0300 Subject: [PATCH] feat: enhance release workflow to check deployment status and update semantic release preset to React --- .github/workflows/release.yml | 3 +++ package.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index edf329d..aa84709 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,9 +4,12 @@ on: push: branches: - main + deployment_status: # Add this to check deployment status jobs: release: + # Only run when deployment to production is successful + if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && github.event.deployment_status.environment == 'Production' name: Release runs-on: ubuntu-latest permissions: diff --git a/package.json b/package.json index 0ea6647..c0727e3 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ [ "@semantic-release/commit-analyzer", { - "preset": "angular", + "preset": "react", "releaseRules": [ { "type": "docs", @@ -129,4 +129,4 @@ "@semantic-release/github" ] } -} +} \ No newline at end of file