Skip to content

merge branch 'dev'

merge branch 'dev' #47

# This is a basic workflow to help you get started with Actions
name: automated_versioning
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
job_update_version:
# The type of runner that the job will run on
permissions: write-all
runs-on: ubuntu-latest
timeout-minutes: 10
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Runs a single command using the runners shell
# - name: Run a one-line script
# run: echo Hello, world!
- name: Semantic versioning
id: versioning
uses: PaulHatch/[email protected]
with:
branch: main
tag_prefix: "v"
major_pattern: "BREAKING CHANGE:"
minor_pattern: "feat:"
version_format: "v${major}.${minor}.${patch}"
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
tag_name: ${{ steps.versioning.outputs.version }}
release_name: ${{ steps.versioning.outputs.version }}