Skip to content

feat: add smart commit analysis with auto AI trailers (GIT-73) (#53) #39

feat: add smart commit analysis with auto AI trailers (GIT-73) (#53)

feat: add smart commit analysis with auto AI trailers (GIT-73) (#53) #39

# Semantic Release: Auto-version and publish on merge to main
# Analyzes conventional commits to determine version bump:
# feat: → minor (0.x.0)
# fix:/perf:/refactor: → patch (0.0.x)
# BREAKING CHANGE: → major (x.0.0)
name: Release
on:
push:
branches: [main]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # Push commits, create releases
issues: write # Comment on issues
pull-requests: write # Comment on PRs
id-token: write # npm provenance
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm test
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.npm_token }}
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
run: npx semantic-release
- name: Summary
if: success()
run: |
echo "## Release Complete" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Semantic release analyzed commits and published if changes warranted a release." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "- **npm:** https://www.npmjs.com/package/git-mem" >> $GITHUB_STEP_SUMMARY
echo "- **Releases:** https://github.com/${{ github.repository }}/releases" >> $GITHUB_STEP_SUMMARY