mirror of
https://github.com/yanhao98/semantic-release-action.git
synced 2025-07-12 23:30:48 +08:00
27 lines
876 B
Plaintext
27 lines
876 B
Plaintext
name: cycjimmy/semantic-release-action
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Semantic Release
|
|
uses: cycjimmy/semantic-release-action@v4
|
|
with:
|
|
dry_run: true
|
|
id: semantic # Need an `id` for output variables
|
|
# 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: |
|
|
echo ${{ steps.semantic.outputs.new_release_version }}
|
|
echo ${{ steps.semantic.outputs.new_release_major_version }}
|
|
echo ${{ steps.semantic.outputs.new_release_minor_version }}
|
|
echo ${{ steps.semantic.outputs.new_release_patch_version }} |