Release it
is a Composite GitHub Action designed to automate the release process for your project. It supports publishing to npm, GitHub releases, and allows customization through various inputs.
Name | Description | Required | Default |
---|---|---|---|
release-branch |
Which branch you would like to release | No | main |
dry-run |
Enable dry run mode (no changes made) | No | false |
no-npm |
Skip releasing to npm | No | false |
no-git |
Skip releasing to GitHub | No | false |
manual-version |
Explicit version for the release (e.g., 1.0.0) | No | |
git-user |
GitHub username | Yes | |
git-email |
GitHub email | Yes | |
git-token |
GitHub token to push the release | Yes |
Name | Description |
---|---|
version |
Version of the successful release |
Below is an example workflow that demonstrates how to use the Release it
composite action:
name: Release Workflow
on:
push:
branches:
- main
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Run Release it Action
uses: codemask-labs/release-it@v1
with:
git-user: "your-username"
git-email: "[email protected]"
git-token: "${{ secrets.GITHUB_TOKEN }}"
- Dry Run: Test the release process without making any changes.
- Selective Releases: Skip npm or GitHub releases as needed.
- Custom Versioning: Set a manual version for the release.
- Branch-Specific Releases: Release from branches other than
main
.
- Ensure that
actions/checkout
andactions/setup-node
are properly configured in your workflow if required. - Use a valid GitHub token with
repo
permissions to enable release functionality. - This action uses
release-it
under the hood; refer to the release-it documentation for additional configuration options.
This project is licensed under the MIT License.