bump: (ESM-860) version bump #146
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: Build | |
on: | |
push: | |
branches: [ "main", "build-test" ] | |
workflow_dispatch: | |
inputs: | |
release: | |
description: 'Skip pre release build' | |
required: false | |
type: boolean | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up yarn | |
uses: DerYeger/yarn-setup-action@master | |
- name: Get current version | |
id: current_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
custom_release_rules: feat:patch,bump:minor | |
dry_run: true | |
- name: Build yarn | |
run: | | |
yarn version --new-version ${{ steps.current_version.outputs.new_version }} --no-git-tag-version | |
yarn build | |
yarn lint | |
yarn test:ci | |
- name: Set up Go | |
uses: actions/[email protected] | |
with: | |
go-version: '1.23' | |
- name: Build go | |
run: | | |
go run mage.go | |
- name: Zip artifacts | |
run: | | |
yarn zip | |
- name: Attatch artifacts to job | |
uses: actions/upload-artifact@v4 | |
with: | |
name: sasesp-plugin-zip-files | |
path: ./sasesp-plugin*.zip | |
retention-days: 14 | |
- name: Bump version and push tag | |
if: ${{ !inputs.release }} | |
id: release_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
custom_release_rules: feat:patch,bump:minor | |
- name: Create a GitHub release | |
if: ${{ !inputs.release }} | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.release_version.outputs.new_tag }} | |
name: Release ${{ steps.release_version.outputs.new_tag }} | |
body: ${{ steps.release_version.outputs.changelog }} | |
artifacts: "./sasesp-plugin*.zip" | |
preRelease: true |