Skip to content

chore: change update tests & improve release process #8

chore: change update tests & improve release process

chore: change update tests & improve release process #8

Workflow file for this run

name: release
on:
pull_request:
types:
- synchronize
- opened
- reopened
push:
branches:
- master
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: version
id: version
uses: codacy/git-version@80c816f11db8dea5e3a81025f598193015b51832 #v2.8.0
with:
prefix: "v"
minor-identifier: /feat(\([\w\d]+\))?:/
major-identifier: /^\s*BREAKING(\s+CHANGE)?:/
- name: Setup Golang
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: go.mod
- name: Go releaser
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}