Commit d3a1e40
fix(ci): trigger npm publish on GitHub Release event (#65)
## Summary
- Decouple npm publish from release-please's `release_created` output,
which is unreliable with squash-merge (SHA mismatch causes "SHA not
found in recent commits" → publish skipped)
- Trigger publish on the `release: published` event instead
- `release-please` job now only manages PR/release creation
- `publish` job triggers on `release: published` or `workflow_dispatch`
(manual fallback)
- Eliminates the need for manual re-publish after every release
## Test plan
- [x] Workflow syntax valid (YAML)
- [ ] Next release should auto-publish without manual intervention
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 21bf2f9 commit d3a1e40
1 file changed
Lines changed: 15 additions & 50 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | | - | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 37 | | |
82 | | - | |
| 38 | + | |
83 | 39 | | |
84 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
85 | 50 | | |
86 | 51 | | |
87 | 52 | | |
88 | | - | |
| 53 | + | |
89 | 54 | | |
90 | 55 | | |
91 | 56 | | |
| |||
117 | 82 | | |
118 | 83 | | |
119 | 84 | | |
120 | | - | |
| 85 | + | |
0 commit comments