Commit 7716a08
Skip publish workflow if version already exists on PyPI (#11)
Added early version check that queries PyPI API to see if current version
already exists. If so, skips all expensive steps (poetry install, tests,
build) and exits early.
This prevents unnecessary CI runs and potential publish conflicts when
the same version is pushed multiple times to main.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent ab19abf commit 7716a08
1 file changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
29 | 46 | | |
| 47 | + | |
30 | 48 | | |
31 | 49 | | |
32 | 50 | | |
33 | 51 | | |
34 | 52 | | |
| 53 | + | |
35 | 54 | | |
36 | 55 | | |
37 | 56 | | |
38 | 57 | | |
| 58 | + | |
39 | 59 | | |
40 | 60 | | |
41 | 61 | | |
| |||
44 | 64 | | |
45 | 65 | | |
46 | 66 | | |
| 67 | + | |
47 | 68 | | |
48 | 69 | | |
49 | 70 | | |
| 71 | + | |
50 | 72 | | |
51 | 73 | | |
52 | 74 | | |
0 commit comments