Read this in other languages: English, 日本語.
CLI tool of Release GitHub Actions.
Details
-
Install
yarn add --dev @technote-space/release-github-actions-cli
-
Run command
yarn release-ga --token <token> -t <tag>
show help
yarn release-ga -h
-
Install
yarn global add @technote-space/release-github-actions-cli
-
Run command
release-ga --token <token> -p <package dir> -t <tag>
show help
release-ga -h
e.g.
--token 1234567890
Not required if you have a .env
file with token
.
e.g.
token=1234567890
e.g.
--tag v1.2.3
-t v1.2.3
Not required if test
option is set.
Branch name to use for build.
If this option is not specified, the current source code will be used.
e.g.
--branch release/v1.2.3
-b release/v1.2.3
Whether not to push.
e.g.
--dry-run
-n
Directory where package.json
file exists.
e.g.
--package /tmp/test-repo
-p /tmp/test-repo
Test mode
The tag name is determined from the latest tag.
test/
is set as the test tag prefix.
Release GitHub Actions CLI
can be configured using .releasegarc
, .releasegarc.json
, .releasegarc.js
, .releasega.config.js
or releasega
property in package.json
.
e.g. .releasegarc
{
"owner": "test-owner",
"repo": "test-repo",
"inputs": {
"test-tag-prefix": "test/",
"fetch-depth": "5"
}
}
e.g. package.json
{
"name": "test",
"version": "1.0.0",
"repository": {
},
"dependencies": {
},
"releasega": {
"owner": "test-owner",
"repo": "test-repo",
"inputs": {
"test-tag-prefix": "test/",
"fetch-depth": "5"
}
}
}
Use this option to specify the owner.
default: detect from url in package.json
Use this option to specify the repo.
default: detect from url in package.json
Use this option to set action inputs.
action.yml
e.g.
{
"inputs": {
"commit message": "test message",
"commit-name": "test name",
"COMMIT_EMAIL": "[email protected]"
}
}