Skip to content

Release: v3.7.1-beta.1 #11

Release: v3.7.1-beta.1

Release: v3.7.1-beta.1 #11

Workflow file for this run

name: "(Tag): Create"
on:
pull_request:
types: [closed]
branches:
- core
- core-beta
- pro
- pro-beta
jobs:
create-tag:
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'tag/v')
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
- name: Get version from package.json
id: version
run: |
tag=$(jq -r .version package.json)
echo "tag=$tag" >> $GITHUB_OUTPUT
echo "::info::Creating git tag [$tag]"
- name: Create tag
run: |
git config user.name "code-snippets-bot"
git config user.email "[email protected]"
git tag "v${{ steps.version.outputs.tag }}"
git push origin "v${{ steps.version.outputs.tag }}"