mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
ci: guard release channel publishing (#488)
This commit is contained in:
@@ -32,6 +32,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
# On manual dispatch, check out the existing tag so we publish the
|
||||
# exact commit that was tagged — not whatever is currently on main.
|
||||
ref: >-
|
||||
@@ -64,6 +65,14 @@ jobs:
|
||||
echo "dist_tag=${DIST_TAG}" >> "$GITHUB_OUTPUT"
|
||||
echo "Resolved version=${VERSION} dist_tag=${DIST_TAG}"
|
||||
|
||||
- name: Validate release channel
|
||||
env:
|
||||
VERSION: ${{ steps.version.outputs.version }}
|
||||
DIST_TAG: ${{ steps.version.outputs.dist_tag }}
|
||||
EVENT_NAME: ${{ github.event_name }}
|
||||
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
|
||||
run: node scripts/validate-release-channel.mjs
|
||||
|
||||
- name: Create release tag
|
||||
if: github.event_name == 'pull_request'
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user