0.0.9 • Published 2 years ago
@hongbusi/release v0.0.9
Usage
Install
pnpm add @hongbusi/release -D
Add script for package.json
{
"scripts": {
"release": "release"
}
}
If you need to publish to npm
, you need to add the parameter --publish
{
"scripts": {
"release": "release --publish"
}
}
Add git action
on:
push:
tags:
- 'v*'
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create Release for Tag
id: create_release
uses: Hongbusi/create-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
At this point, the configuration is complete, and enjoy it.
License
MIT