Merge pull request #229 from zimmerman-team/develop #743
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Semantic 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", "develop"] | |
pull_request: | |
branches: ["main", "develop"] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
versioning: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
# Need these two configurations because this job runs on protected branches | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Semantic Release | |
uses: cycjimmy/semantic-release-action@v3 | |
with: | |
semantic_version: 18 | |
branches: | | |
[ | |
"main", | |
{ | |
"name": "develop", | |
"prerelease": true | |
} | |
] | |
extra_plugins: | | |
"@semantic-release/commit-analyzer@9.0.2" | |
"@semantic-release/release-notes-generator@10.0.3" | |
"@semantic-release/github@8.1.0" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |