π Automatically generate changelogs from your release tags
based on pull requests
history on GitHub
Install the dependencies
npm install
npm run build && npm run package
Note: Actions are run from GitHub repos so we will checkin the packed dist folder.
Then run ncc and push the results:
npm run package
git add dist
git commit -a -m "prod dependencies"
git push origin releases/v1
name: Generate Changelogs
run-name: "chore(release): generate changelogs for ${{ inputs.previous_release_tag }}..${{ inputs.future_release_tag }}"
on:
workflow_dispatch:
inputs:
previous_release_tag:
required: true
description: previous release tag
future_release_tag:
required: true
description: future release tag
jobs:
build:
name: Generate changelogs
runs-on: ubuntu-latest
steps:
- name: Generate release changelogs
uses: daeuniverse/changelogs-generator-action@main
id: changelog
with:
# https://github.com/daeuniverse/changelogs-generator-action
previousRelease: ${{ inputs.previous_release_tag }}
futureRelease: ${{ inputs.future_release_tag }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Print outputs
shell: bash
run: |
echo "${{ steps.changelog.outputs.changelogs }}"
Name | Description |
---|---|
previousRelease |
Previous release tag |
futureRelease |
Future release tag |
token |
Github auth token |
verbose |
Verbose mode |
Name | Description |
---|---|
changelogs |
Contents of generated changelogs |
time |
Timestamp |