Commit f5ffd00
committed
ci: auto-publish on release by calling publish.yml as a reusable workflow
release.yml created the GitHub Release with GITHUB_TOKEN, whose events don't
trigger other workflows — so publish.yml's 'release: published' trigger never
fired and npm was never published. Make release.yml call publish.yml directly
(workflow_call + secrets: inherit) after cutting the tag/release, gated on a
version change. A direct reusable-workflow call isn't subject to the
GITHUB_TOKEN recursion guard, so a version bump on main now auto-publishes —
no manual dispatch, no PAT secret. publish.yml keeps its release/dispatch
triggers for manual runs.1 parent 1fc757b commit f5ffd00
2 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
6 | 15 | | |
7 | 16 | | |
8 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
0 commit comments