This Action is in the
beta
right now
Automatically create release tags based on files updated in a commit for JavaScript/TypeScript projects. If you are new into GitHub Actions read this quick start guide first
Add following entry into your jobs
list
<job-name>:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Automatic Release Creation
uses: lr0pb/generate-release@v0.2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
Inputs are like arguments for functions and must be set by the with
keyword in your <step-name>
that uses this Action
Name | Description | Required? | Default value |
---|---|---|---|
token |
Your GITHUB_TOKEN to provide access to GitHub REST API |
❗ Yes | |
track-file |
Path to file used to track updates:package.json file in whatever directory |
✅ No | package.json |
notes-source |
Source type for release notes:changelog | auto |
✅ No | changelog |
notes-file |
Path to changelog file used to provide release descriptions | ✅ No | CHANGELOG.md |
notes-fallback |
Fallback for release notes when no changelog file founded or when no description in this file for the new version:fallbackText | auto |
✅ No | fallbackText fallback-text input value |
fallback-text |
Text used for fallbackText release notes fallback |
✅ No | "No description 💭" |
tag-pattern |
Custom tag pattern for release title | ✅ No | v{major}.{minor}.{patch} |
Full workflow file template for your automatic release creation process:
name: Create release
on:
push:
branches: ['main']
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Automatic Release Creation
uses: lr0pb/generate-release@v0.2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}