mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-07 18:56:56 +00:00
docs(README.md): modify instructions for usage
This commit is contained in:
parent
69d08ff2e5
commit
147b86f4f3
1 changed files with 11 additions and 4 deletions
13
README.md
13
README.md
|
|
@ -1,7 +1,14 @@
|
||||||
# Semantic Release Action
|
# Semantic Release Action
|
||||||
|
[](https://github.com/semantic-release/semantic-release)
|
||||||
|
|
||||||
GitHub Action for [Semantic Release](https://github.com/semantic-release/semantic-release).
|
GitHub Action for [Semantic Release](https://github.com/semantic-release/semantic-release).
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
#### Step1: Set any [Semantic Release Configuration](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration) in your repository.
|
||||||
|
|
||||||
|
#### Step2: [Add Secrets](https://help.github.com/en/articles/virtual-environments-for-github-actions#creating-and-using-secrets-encrypted-variables) in your repository for the [Semantic Release Authentication](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/ci-configuration.md#authentication) Environment Variables.
|
||||||
|
|
||||||
|
#### Step3: Add a [Workflow File](https://help.github.com/en/articles/workflow-syntax-for-github-actions) to your repository to create custom automated processes.
|
||||||
* inputs:
|
* inputs:
|
||||||
* `branch`: [Optional] The branch for release. Default `"master"`.
|
* `branch`: [Optional] The branch for release. Default `"master"`.
|
||||||
* `extra_plugins`: [Optional] Extra plugins for pre-install. Default `""`.
|
* `extra_plugins`: [Optional] Extra plugins for pre-install. Default `""`.
|
||||||
|
|
@ -12,7 +19,7 @@ A simple example
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- name: Semantic Release
|
- name: Semantic Release
|
||||||
uses: cycjimmy/semantic-release-action@master
|
uses: cycjimmy/semantic-release-action@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
@ -22,8 +29,8 @@ An advanced example
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- name: Semantic Release
|
- name: Semantic Release
|
||||||
uses: cycjimmy/semantic-release-action@master
|
uses: cycjimmy/semantic-release-action@v1
|
||||||
id: semantic
|
id: semantic # Need an `id` for output variables
|
||||||
with:
|
with:
|
||||||
branch: master
|
branch: master
|
||||||
extra_plugins: |
|
extra_plugins: |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue