Skip to content

build(deps): bump semver from 6.3.0 to 6.3.1 (#16) #5

build(deps): bump semver from 6.3.0 to 6.3.1 (#16)

build(deps): bump semver from 6.3.0 to 6.3.1 (#16) #5

Workflow file for this run

---
name: release
on:
push:
branches:
- main
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get next version
uses: jveldboom/action-conventional-versioning@v1
id: version
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "${{ steps.version.outputs.version-with-prefix }}" \
--generate-notes \
--target "${{ github.sha }}"
- name: Update Major Tag
env:
MAJOR: ${{ steps.version.outputs.major-with-prefix }}
run: |
git tag -d "${MAJOR}" || true
git push origin ":refs/tags/${MAJOR}"
git tag "${MAJOR}" "${GITHUB_SHA}"
git push origin "${MAJOR}"