mirror of
https://github.com/morluto/rea.git
synced 2026-11-21 22:15:50 +00:00
* ci(release): require full qualification before tagging * ci(release): preserve unpublished versions and verify npm before tagging * test(release): exercise publication gates on both release routes * fix(release): fetch the live main checkpoint before verifying it * fix(release): constrain GitHub requests and workflow output * fix(release): honor GitHub label and recovery API contracts
37 lines
1006 B
YAML
37 lines
1006 B
YAML
name: Abandon unpublished release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
release_source:
|
|
description: Exact merge SHA of the unpublished main release PR
|
|
required: true
|
|
type: string
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
abandon:
|
|
name: Record release abandonment
|
|
if: github.ref == 'refs/heads/main'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
|
|
with:
|
|
node-version-file: .nvmrc
|
|
package-manager-cache: false
|
|
- run: npm ci
|
|
env:
|
|
HUSKY: "0"
|
|
- name: Verify no publication and close the candidate
|
|
env:
|
|
RELEASE_SOURCE: ${{ inputs.release_source }}
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: node scripts/ci/release-attempt.mjs abandon
|