Skip to content

fix(validation): 🐛 separate local declaration and assignment (SC2… #39

fix(validation): 🐛 separate local declaration and assignment (SC2…

fix(validation): 🐛 separate local declaration and assignment (SC2… #39

name: Release Please
# Automates releases using conventional commits
# - Creates/updates release PR based on commits
# - Generates CHANGELOG.md automatically
# - Creates GitHub releases with tags for marketplace
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
# GitHub Action release type
release-type: simple
# Package name for releases
package-name: usable-pr-validator
# Github Token
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
# Include these types in changelog
changelog-types: |
[
{"type":"feat","section":"Features","hidden":false},
{"type":"fix","section":"Bug Fixes","hidden":false},
{"type":"docs","section":"Documentation","hidden":false},
{"type":"chore","section":"Miscellaneous","hidden":false},
{"type":"refactor","section":"Code Refactoring","hidden":false},
{"type":"perf","section":"Performance Improvements","hidden":false}
]
- name: Display Release Information
if: ${{ steps.release.outputs.release_created }}
run: |
echo "🎉 Release created!"
echo "Tag: ${{ steps.release.outputs.tag_name }}"
echo "Version: ${{ steps.release.outputs.version }}"
echo "Release PR: ${{ steps.release.outputs.pr }}"
- name: Checkout code
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
- name: Update latest tag
if: ${{ steps.release.outputs.release_created }}
run: |
echo "Updating 'latest' tag to point to ${{ steps.release.outputs.tag_name }}"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -fa latest -m "Update latest tag to ${{ steps.release.outputs.tag_name }}"
git push origin latest --force