mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-07 10:46:56 +00:00
38 lines
966 B
YAML
38 lines
966 B
YAML
name: Test Release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
schedule:
|
|
- cron: 0 2 * * 0
|
|
|
|
jobs:
|
|
test:
|
|
name: release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Semantic Release
|
|
uses: cycjimmy/semantic-release-action@v2
|
|
id: semantic
|
|
with:
|
|
extra_plugins: |
|
|
@semantic-release/git
|
|
@semantic-release/changelog
|
|
dry_run: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
- name: Test Outputs
|
|
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 }}
|
|
|