6
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2025-12-27 08:38:17 +00:00

docs(readme): update semantic-release-action to v6

update semantic-release-action to v6
This commit is contained in:
Geoffrey.C 2025-11-15 21:56:41 +08:00
parent 9246c0bd17
commit 089129701b

View file

@ -20,7 +20,7 @@ steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Semantic Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v5 uses: cycjimmy/semantic-release-action@v6
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@ -65,7 +65,7 @@ steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Semantic Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v5 uses: cycjimmy/semantic-release-action@v6
with: with:
semantic_version: 19.0.5 # It is recommended to specify a version range semantic_version: 19.0.5 # It is recommended to specify a version range
# for semantic-release when using # for semantic-release when using
@ -75,7 +75,7 @@ steps:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
``` ```
If no version range is specified with `cycjimmy/semantic-release-action@v5` then [semantic-release](https://github.com/semantic-release/semantic-release/) version [24.2.7](https://github.com/semantic-release/semantic-release/releases/tag/v24.2.7) is used. If no version range is specified with `cycjimmy/semantic-release-action@v6` then [semantic-release](https://github.com/semantic-release/semantic-release/) version [24.2.7](https://github.com/semantic-release/semantic-release/releases/tag/v25.0.2) is used.
#### branches #### branches
> {Optional Input Parameter} The branches on which releases should happen.<br>`branches` supports for **semantic-release above v16**. > {Optional Input Parameter} The branches on which releases should happen.<br>`branches` supports for **semantic-release above v16**.
@ -85,7 +85,7 @@ steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Semantic Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v5 uses: cycjimmy/semantic-release-action@v6
with: with:
semantic_version: 16 semantic_version: 16
# you can set branches for semantic-release above v16. # you can set branches for semantic-release above v16.
@ -131,7 +131,7 @@ steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Semantic Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v5 uses: cycjimmy/semantic-release-action@v6
with: with:
semantic_version: 15.13.28 semantic_version: 15.13.28
# you can set branch for semantic-release older than v16. # you can set branch for semantic-release older than v16.
@ -156,7 +156,7 @@ steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Semantic Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v5 uses: cycjimmy/semantic-release-action@v6
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: |
@ -186,7 +186,7 @@ steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Semantic Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v5 uses: cycjimmy/semantic-release-action@v6
with: with:
dry_run: true dry_run: true
env: env:
@ -202,7 +202,7 @@ steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Semantic Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v5 uses: cycjimmy/semantic-release-action@v6
with: with:
ci: false ci: false
env: env:
@ -220,7 +220,7 @@ steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Semantic Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v5 uses: cycjimmy/semantic-release-action@v6
with: with:
# You can extend an existing shareable configuration. # You can extend an existing shareable configuration.
# And you can specify version range for the shareable configuration if you prefer. # And you can specify version range for the shareable configuration if you prefer.
@ -240,7 +240,7 @@ steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Semantic Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v5 uses: cycjimmy/semantic-release-action@v6
with: with:
# You can select another working directory like a subdirectory for example. # You can select another working directory like a subdirectory for example.
working_directory: ./code working_directory: ./code
@ -257,7 +257,7 @@ steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Semantic Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v5 uses: cycjimmy/semantic-release-action@v6
with: with:
tag_format: custom-v${version} tag_format: custom-v${version}
env: env:
@ -279,7 +279,7 @@ steps:
git config --global user.email github-actions@github.com git config --global user.email github-actions@github.com
git merge --no-ff origin/${{ github.event.pull_request.head.ref }} --message "${{ github.event.pull_request.title }}" git merge --no-ff origin/${{ github.event.pull_request.head.ref }} --message "${{ github.event.pull_request.title }}"
- name: Semantic Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v5 uses: cycjimmy/semantic-release-action@v6
with: with:
unset_gha_env: ${{ github.event_name == 'pull_request' }} unset_gha_env: ${{ github.event_name == 'pull_request' }}
ci: ${{ github.event_name == 'pull_request' && false || '' }} ci: ${{ github.event_name == 'pull_request' && false || '' }}
@ -310,7 +310,7 @@ steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Semantic Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v5 uses: cycjimmy/semantic-release-action@v6
id: semantic # Need an `id` for output variables id: semantic # Need an `id` for output variables
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}