Skip to content

Commit

Permalink
Use labels for changelogs (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntotten authored Oct 4, 2024
1 parent 746df24 commit d9bccc9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
changelog:
categories:
- title: Breaking Changes 🛠
labels:
- breaking-change
- deprecation
- title: New Features 🎉
labels:
- feature
- title: Bug Fixes 🐛
labels:
- bug
- title: Documentation 📚
labels:
- docs
- title: Other Changes 🔄
labels:
- "*"
24 changes: 19 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
actions: read
contents: write
id-token: write
pull-requests: read

# This can only be triggered from main
if: github.ref == 'refs/heads/main'
Expand Down Expand Up @@ -93,11 +94,24 @@ jobs:
if: github.event_name == 'workflow_dispatch'
run: git push origin main --follow-tags

- name: Changelog
if: github.event_name == 'workflow_dispatch'
run: nx release changelog ${{ env.ZUDOKU_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/github-script@v7
name: Create Release
id: create-release
with:
result-encoding: string
retries: 3
script: |
github.request("POST /repos/{owner}/{repo}/releases", {
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: `v${{ env.ZUDOKU_VERSION }}`,
draft: false,
prerelease: false,
generate_release_notes: true,
headers: {
"X-GitHub-Api-Version": "2022-11-28",
},
});
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
Expand Down

0 comments on commit d9bccc9

Please sign in to comment.