Files
sanderling/.github/workflows/release.yml
T
pj f7465eed16 feat(ci): patch release on merge, manual promotion to a milestone
Release goes back in the ci graph, behind Checks, Folio and Replay UI.
release.yml is independent of it and runs no checks: it republishes the
commit the last release was cut from under a minor or major version.

Claude-Session: https://claude.ai/code/session_01ShuAy8q8ZfPi8KHxwc8JpQ
2026-08-16 14:52:56 +05:30

42 lines
1.2 KiB
YAML

name: release
# Promotes the last release to a milestone. ci cuts a patch on every merge, so
# the released versions run 0.1.4, 0.1.5, 0.1.6; this marks the one you have
# been running as 0.2.0 and publishes it under that name.
#
# It runs no checks of its own and needs none. The commit it releases is the one
# the last release was cut from, and that commit only carries a tag because a
# whole ci run went green on it.
on:
workflow_dispatch:
inputs:
bump:
description: Which part of MAJOR.MINOR.PATCH to advance
type: choice
options:
- minor
- major
- patch
default: minor
version:
description: Release this version outright, e.g. 1.0.0 or 1.0.0-rc1. Overrides the bump.
type: string
required: false
permissions:
contents: read
jobs:
release:
name: Release
# No sha: this releases the commit the last release was cut from rather than
# whatever master has drifted to since.
uses: ./.github/workflows/release-publish.yml
permissions:
contents: write
with:
bump: ${{ inputs.bump }}
version: ${{ inputs.version }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}