Skip to content

Commit

Permalink
Merge pull request #83 from e-picsa/feat/release-drafter
Browse files Browse the repository at this point in the history
ci: add release drafter
  • Loading branch information
chrismclarke authored Nov 6, 2022
2 parents 2fc86f8 + 481f4f3 commit acac876
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
template: |
## What’s Changed
$CHANGES
26 changes: 26 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Automatically draft release notes based on any pull requests made to main
name: Release Drafter
on:
push:
branches:
- main
jobs:
update_release_draft:
runs-on: ubuntu-latest
env:
APP_VERSION: '0.0.0'
steps:
# Extract current version number from package.json and set it as the APP_VERSION env variable
- name: checkout
uses: actions/checkout@main
- name: set_version
run: echo "APP_VERSION=$(echo "$(cat package.json | jq -r '.version')")" >> $GITHUB_ENV
- name: check_version
run: echo "version $env.APP_VERSION"
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: v${{env.APP_VERSION}}
tag: v${{env.APP_VERSION}}

0 comments on commit acac876

Please sign in to comment.