Skip to content

Commit 97f4c4a

Browse files
committed
Run CI on all pushes, guard publish to tag-only
Instead of a separate ci.yml (which GitHub Actions won't discover from a feature branch), consolidate into a single workflow that triggers on all pushes and PRs. The test jobs always run; the publish job is guarded with `if: startsWith(github.ref, 'refs/tags/v')` so it only executes on version tag pushes. https://claude.ai/code/session_01RBbLduNgvjWctN2Dj12UDY
1 parent da48e1c commit 97f4c4a

2 files changed

Lines changed: 5 additions & 44 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
name: Publish to Hex.pm
1+
name: CI
22

33
on:
44
push:
5-
tags:
6-
- 'v*'
5+
branches: ['*']
6+
tags: ['v*']
7+
pull_request:
8+
branches: [main]
79

810
jobs:
911
test:

0 commit comments

Comments
 (0)