1.0.8 โข Published 5 years ago
github-actions-release v1.0.8
Github Actions Release ยท
Github actions for the package release.
Features
๐๐ค๐๐ค๐๐
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:patch
1.0.0 -> 1.1.1 ๐ semver:minor
1.0.0 -> 2.2.1 ๐ semver:major
Usage
Enable Github Actions
Add SSH Keys / Npm Auth Token to Secrets.
Project - Settings - Secrets
NPM_AUTH_TOKEN
RELEASE_SSH_ID_RSA
RELEASE_SSH_ID_RSA_PUB
RELEASE_GIT_USER_NAME
RELEASE_GIT_USER_EMAIL
Create Workflow
## actions
action "npm install" {
uses = "docker://node:lts-slim"
args = "npm i"
}
action "npm ci" {
uses = "docker://node:lts-slim"
needs = ["npm install"]
args = "npm run ci"
}
action "npm release" {
uses = "thonatos/github-actions-release@master"
needs = ["npm ci"]
args = "actions-release"
secrets = [
"GITHUB_TOKEN",
"NPM_AUTH_TOKEN",
"RELEASE_SSH_ID_RSA",
"RELEASE_SSH_ID_RSA_PUB",
"RELEASE_GIT_USER_NAME",
"RELEASE_GIT_USER_EMAIL"
]
}
## workflow
workflow "Pull Request" {
on = "pull_request"
resolves = ["npm install", "npm ci", "npm release"]
}
Handle Pull Request
- Create the PR
- Review code
- Change PR title to
Release {Semver Version}
- Close PR without deleting branch
What will the action do ?
- It will a add label like:
semver:patch
- Create a Release Tag with updated changelog
- Release the package with run
npm publish --access public
Contributing
Suggestions
Please open an issue here.
License
Github Actions Release is MIT licensed.