Commit af880d9
ci: skip npm publish when no new commits since last tag
The bump step in npmpublish.yml early-exits when there are no new
commits since the latest tag, but the publish step then runs
unconditionally and tries to republish the existing version, failing
with 'cannot publish over previously published versions'.
Only fires for manual `gh workflow run` on a tag-current branch
(on:push always has ≥1 new commit), but leaves a spurious red on
CI. Gate the post-bump steps on a new `bumped` step output.
Template-wide fix: ep_subscript_and_superscript#127 was the pilot.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7da2380 commit af880d9
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | 73 | | |
| |||
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
| 98 | + | |
87 | 99 | | |
88 | 100 | | |
89 | 101 | | |
| 102 | + | |
90 | 103 | | |
91 | 104 | | |
92 | 105 | | |
| |||
104 | 117 | | |
105 | 118 | | |
106 | 119 | | |
| 120 | + | |
107 | 121 | | |
0 commit comments