Skip to content

Commit

Permalink
feat: enhance release workflow to check deployment status and update …
Browse files Browse the repository at this point in the history
…semantic release preset to React
  • Loading branch information
neopromic committed Jan 7, 2025
1 parent 949ed02 commit 426b887
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"preset": "react",
"releaseRules": [
{
"type": "docs",
Expand Down Expand Up @@ -129,4 +129,4 @@
"@semantic-release/github"
]
}
}
}

0 comments on commit 426b887

Please sign in to comment.