Skip to content

Release

Release #3

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
bump:
description: "Bump Type"
required: true
type: choice
options:
- patch
- minor
- major
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout Source Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Setup ENV
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "NODE_VERSION=$(cat .node-version)" >> $GITHUB_ENV
- name: Setup Node Stuff
uses: ./.github/actions/setup-node
with:
node: ${{ env.NODE_VERSION }}
- name: Setup Golang Stuff
uses: ./.github/actions/setup-golang
with:
golang: "1.21.5"
- name: Build & Release
run: pnpm release ${{ github.event.inputs.bump }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}