Skip to content

Commit eb365e7

Browse files
krukowCopilot
andcommitted
ci(release): accept -preview prerelease qualifier; bump setup-clojure to node24
The Release workflow's input-validation regexes only allowed -(alpha|beta|rc).N prerelease qualifiers, so dispatching a release for upstream version 1.0.7-preview.2 failed at "Validate release inputs". build.clj's sync-version already accepts `preview` (we ship 1.0.6-preview.1.0), so the workflow was inconsistent with the build tooling it drives. Add `preview` to both the upstream_version and explicit_version regexes and refresh the error-message examples. Also bump DeLaGuardo/setup-clojure 13.5.2 -> 13.6.1 across all four workflows to clear the "Node.js 20 is deprecated" annotation (13.6.1 runs on node24). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6c1ba270-39e7-404f-b8c3-bbe47b3b5635
1 parent 1eb5a61 commit eb365e7

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
java-version: '21'
1818

1919
- name: Set up Clojure
20-
uses: DeLaGuardo/setup-clojure@13.5.2
20+
uses: DeLaGuardo/setup-clojure@13.6.1
2121
with:
2222
cli: latest
2323
bb: 1.12.214

‎.github/workflows/codegen-check.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
java-version: '21'
2929

3030
- name: Set up Clojure
31-
uses: DeLaGuardo/setup-clojure@13.5.2
31+
uses: DeLaGuardo/setup-clojure@13.6.1
3232
with:
3333
cli: latest
3434
bb: 1.12.214

‎.github/workflows/copilot-setup-steps.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
distribution: 'temurin'
2626
java-version: '21'
2727
- name: Set up Clojure
28-
uses: DeLaGuardo/setup-clojure@13.5.2
28+
uses: DeLaGuardo/setup-clojure@13.6.1
2929
with:
3030
cli: 1.12.4.1582
3131
bb: 1.12.214

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
java-version: '21'
5353

5454
- name: Set up Clojure
55-
uses: DeLaGuardo/setup-clojure@13.5.2
55+
uses: DeLaGuardo/setup-clojure@13.6.1
5656
with:
5757
cli: latest
5858
bb: 1.12.214
@@ -96,8 +96,8 @@ jobs:
9696
echo "explicit_version must be empty when version_strategy=sync-upstream." >&2
9797
exit 1
9898
fi
99-
if [[ ! "$UPSTREAM_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|rc)\.[0-9]+)?$ ]]; then
100-
echo "upstream_version must match X.Y.Z or X.Y.Z-(alpha|beta|rc).N (e.g., 0.1.23 or 1.0.0-beta.3)." >&2
99+
if [[ ! "$UPSTREAM_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|preview|rc)\.[0-9]+)?$ ]]; then
100+
echo "upstream_version must match X.Y.Z or X.Y.Z-(alpha|beta|preview|rc).N (e.g., 0.1.23 or 1.0.7-preview.2)." >&2
101101
exit 1
102102
fi
103103
;;
@@ -116,8 +116,8 @@ jobs:
116116
echo "upstream_version must be empty when version_strategy=set-version." >&2
117117
exit 1
118118
fi
119-
if [[ ! "$EXPLICIT_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|rc)\.[0-9]+)?\.[0-9]+(-SNAPSHOT)?$ ]]; then
120-
echo "explicit_version must match X.Y.Z.N or X.Y.Z-(alpha|beta|rc).M.N (with optional -SNAPSHOT). Examples: 0.1.23.1, 1.0.0-beta.3.0." >&2
119+
if [[ ! "$EXPLICIT_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|preview|rc)\.[0-9]+)?\.[0-9]+(-SNAPSHOT)?$ ]]; then
120+
echo "explicit_version must match X.Y.Z.N or X.Y.Z-(alpha|beta|preview|rc).M.N (with optional -SNAPSHOT). Examples: 0.1.23.1, 1.0.7-preview.2.0." >&2
121121
exit 1
122122
fi
123123
if [[ "$SNAPSHOT" == "true" ]]; then

0 commit comments

Comments
 (0)