Github Actions Workman ·
Github actions for the package release.
Features
😀🤓😎🤗😉😇
Pull Request Checker
Check Release Proposal
Example: 'Release {Semver Version}'
Check Release Version
1.0.0 -> 1.0.1 ✅1.0.0 -> 1.0.1 ✅2.0.0 -> 1.0.0 ❎
Search Release Label
Add the label to the Release Pull Request
1.0.0 -> 1.0.1 👉 semver:patch1.0.0 -> 1.1.1 👉 semver:minor1.0.0 -> 2.2.1 👉 semver:major
Auto Release
Release to Github
commit message: Release {Semver Version}
- Create tag
- Create release
Release NPM Package
- Publish to NPM
Usage
Prepare
Enable Github Actions
Add NPM Token to Secrets.
Project - Settings - Secrets
NPM_TOKEN
Checker
.github/main.workflow
## workflow workflow "Pull Request" ## actions action "npm install" action "npm ci" action "workman check"
Release
.github/main.workflow
## workflow workflow "Push" ## actions action "npm install" action "npm ci" action "workman release"
Workflow
Handle Pull Request
-
Create the PR(title:
Release {Semver Version}
)- check the release proposal
- check the release version
- check the release history
- add a label like:
semver:patch
-
Merge PR without deleting branch
- create a tag with the release version
- create a release with release history
- release the package with run
npm publish --access public
Contributing
Suggestions
Please open an issue here.
License
Github Actions Release is MIT licensed.