Skip to content

Release

Release #14

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
increment:
description: |
The increment to apply to the current version.
required: true
type: choice
options:
- patch
- minor
- major
default: "patch"
jobs:
lint:
uses: ./.github/workflows/lint.yml
build:
uses: ./.github/workflows/build.yml
perfom-release:
needs:
- lint
- build
runs-on: ubuntu-22.04
steps:
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
- name: Check out repository
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.1.2
- name: Setup node environment (for building)
uses: actions/setup-node@v4
with:
node-version: 18.17
cache: "pnpm"
- name: Fetch dependencies
run: |
pnpm install --frozen-lockfile
- name: Perform release
run: |
pnpm release --increment ${{ github.event.inputs.increment }}
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}