mirror of
https://github.com/yanhao98/semantic-release-action.git
synced 2025-07-13 07:40:48 +08:00
feat: first commit
This commit is contained in:
27
.github/workflows/semantic-release-action.yaml.off
vendored
Normal file
27
.github/workflows/semantic-release-action.yaml.off
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
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 }}
|
Reference in New Issue
Block a user