5
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2025-11-07 18:56:56 +00:00

docs(extra_plugins): improve extra_plugins configuration document(#3)

This commit is contained in:
cycjimmy 2019-10-31 22:57:14 +08:00
parent 49e15bd489
commit 56fc83231a
2 changed files with 4 additions and 3 deletions

View file

@ -18,7 +18,7 @@ GitHub Action for [Semantic Release](https://github.com/semantic-release/semanti
#### Step3: Add a [Workflow File](https://help.github.com/en/articles/workflow-syntax-for-github-actions) to your repository to create custom automated processes. #### 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 on which releases should happen. It will override the branch attribute in your configuration file. If the attribute is not configured on both sides, the default is master. * `branch`: [Optional] The branch on which releases should happen. It will override the branch attribute in your configuration file. If the attribute is not configured on both sides, the default is master.
* `extra_plugins`: [Optional] Extra plugins for pre-install. * `extra_plugins`: [Optional] Extra plugins for pre-install. You can also specify specifying version range for the extra plugins if you prefer.
* `dry_run`: [Optional] Whether to run semantic release in "dry-run" mode. It will override the dryRun attribute in your configuration file. * `dry_run`: [Optional] Whether to run semantic release in "dry-run" mode. It will override the dryRun attribute in your configuration file.
* outputs: * outputs:
* `new_release_published`: Whether a new release was published. `true` or `false` * `new_release_published`: Whether a new release was published. `true` or `false`
@ -45,9 +45,10 @@ steps:
id: semantic # Need an `id` for output variables id: semantic # Need an `id` for output variables
with: with:
branch: master branch: master
# You can specify specifying version range for the extra plugins if you prefer.
extra_plugins: | extra_plugins: |
@semantic-release/git @semantic-release/git
@semantic-release/changelog @semantic-release/changelog@3.0.0
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

View file

@ -8,7 +8,7 @@ inputs:
branch: branch:
description: 'The branch on which releases should happen. It will override the branch attribute in your configuration file. If the attribute is not configured on both sides, the default is master.' description: 'The branch on which releases should happen. It will override the branch attribute in your configuration file. If the attribute is not configured on both sides, the default is master.'
extra_plugins: extra_plugins:
description: 'Extra plugins for pre-install' description: 'Extra plugins for pre-install. You can also specify specifying version range for the extra plugins if you prefer.'
dry_run: dry_run:
description: 'Whether to run semantic release in "dry-run" mode. It will override the dryRun attribute in your configuration file' description: 'Whether to run semantic release in "dry-run" mode. It will override the dryRun attribute in your configuration file'
outputs: outputs: