Skip to content

Commit 73166be

Browse files
ci: guard tag validation to tag pushes; temporary branch dry-run trigger
1 parent 2b69969 commit 73166be

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
push:
1212
tags:
1313
- "v*.*.*"
14+
# TEMPORARY (pre-merge validation): run the build-only dry run on pushes
15+
# to the release feature branch. Remove after the first successful run.
16+
branches:
17+
- feature/cli-and-github-release
1418
workflow_dispatch:
1519

1620
# Least privilege by default; only the `release` job below gets write access.
@@ -40,7 +44,7 @@ jobs:
4044
cache: npm
4145

4246
- name: Validate tag format and package-version match
43-
if: github.event_name == 'push'
47+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
4448
run: node scripts/release-check.mjs --tag-only --tag "$GITHUB_REF_NAME"
4549

4650
- name: Install dependencies (locked)

0 commit comments

Comments
 (0)