0.0.1-dev • Published 4 years ago
semantic-release-gitee v0.0.1-dev
semantic-release-gitee
| Step | Description |
|---|---|
verifyConditions | Verify the presence and the validity of the authentication (set via environment variables). |
publish | Publish a Gitee release. |
Install
$ npm install semantic-release-gitee -DUsage
The plugin can be configured in the semantic-release configuration file:
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["semantic-release-gitee", {
}],
]
}With this example Gitee releases will be published to the https://gitee.com instance.
Configuration
Gitee authentication
The Gitee authentication configuration is required and can be set via environment variables.
Create a personal access token with the api scope and make it available in your CI environment via the GITEE_TOKEN environment variable. If you are using GITEE_TOKEN as the remote Git repository authentication it must also have the write_repository scope.
Environment variables
| Variable | Description |
|---|---|
GITEE_TOKEN | Required. The token used to authenticate with Gitee. |
Options
| Option | Description | Default |
|---|---|---|
giteeApiPathPrefix | The Gitee API prefix. | GITEE_PREFIX environment variable or CI provided environment variables if running on ci or /api/v5. |
0.0.1-dev
4 years ago