mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-08 19:26:55 +00:00
docs(outputs): split Using Output Variables
This commit is contained in:
parent
726195f9e6
commit
8dd7aa5418
1 changed files with 19 additions and 6 deletions
25
README.md
25
README.md
|
|
@ -51,17 +51,12 @@ steps:
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Semantic Release
|
- name: Semantic Release
|
||||||
uses: cycjimmy/semantic-release-action@v2
|
uses: cycjimmy/semantic-release-action@v2
|
||||||
id: semantic # Need an `id` for output variables
|
|
||||||
with:
|
with:
|
||||||
branch: master
|
branch: master
|
||||||
semantic_version: 15.13.28
|
semantic_version: 15.13.28
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: Do something when a new release published
|
|
||||||
if: steps.semantic.outputs.new_release_published == 'true'
|
|
||||||
run: ...
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Passing Extra Plugins with `extra_plugins`
|
#### Passing Extra Plugins with `extra_plugins`
|
||||||
|
|
@ -75,7 +70,6 @@ steps:
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Semantic Release
|
- name: Semantic Release
|
||||||
uses: cycjimmy/semantic-release-action@v2
|
uses: cycjimmy/semantic-release-action@v2
|
||||||
id: semantic # Need an `id` for output variables
|
|
||||||
with:
|
with:
|
||||||
# You can specify specifying version range for the extra plugins if you prefer.
|
# You can specify specifying version range for the extra plugins if you prefer.
|
||||||
extra_plugins: |
|
extra_plugins: |
|
||||||
|
|
@ -97,6 +91,25 @@ _release-config_
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Using Output Variables
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Semantic Release
|
||||||
|
uses: cycjimmy/semantic-release-action@v2
|
||||||
|
id: semantic # Need an `id` for output variables
|
||||||
|
with:
|
||||||
|
branch: master
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
|
- name: Do something when a new release published
|
||||||
|
if: steps.semantic.outputs.new_release_published == 'true'
|
||||||
|
run: ...
|
||||||
|
```
|
||||||
|
|
||||||
## [CHANGELOG](./docs/CHANGELOG.md)
|
## [CHANGELOG](./docs/CHANGELOG.md)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue