Commit 885963f
ci: fix runtime publish (tag/Node), commit regenerated runtime back, auto-commit sponsor image (#5647)
* ci(npm): publish prerelease as latest + bump CI Node to 22
The OIDC migration (#5646) authenticates correctly but `npm publish` fails
on npm >= 11 with 'You must specify a tag using --tag when publishing a
prerelease version' — the old JS-DevTools action defaulted to `latest`
implicitly. v3 intentionally ships alpha.N as the default dist-tag (the
templates pin "@wailsio/runtime": "latest"), so publish with --tag latest.
Also bump the CI Node from the deprecated 20 to 22 (LTS).
* ci(npm): verify generated artifacts + commit regenerated runtime to master
Harden the publish flow per the existing regenerate-before-publish design:
- add a Verify step that fails the job if (re)generation didn't produce the
expected outputs (bundled runtime + npm dist/), catching silent build
failures before anything is published or committed.
- make the commit-back explicit: 'git add -A' sweeps every regenerated tracked
file (bundled runtime in internal/assetserver/bundledassets, generated
pkg/events/events.go, TypeDoc output) back to master alongside the version
bump; log 'git status' so the committed set is visible. dist/ is gitignored
and is rebuilt fresh by prepack at publish time.
* ci(sponsors): auto-commit sponsor image instead of opening a PR
Push the regenerated website/static/img/sponsors.svg straight to master
(no-op when unchanged) using the bypass-capable WAILS_REPO_TOKEN, matching
publish-npm.yml, rather than opening a daily 'update sponsors' PR. Also
modernise the actions (checkout v3->v4, setup-node v2->v4, Node 20->22).
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>1 parent 4a31edc commit 885963f
2 files changed
Lines changed: 56 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | | - | |
| 23 | + | |
18 | 24 | | |
19 | | - | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
112 | 133 | | |
113 | 134 | | |
114 | 135 | | |
115 | 136 | | |
116 | 137 | | |
117 | 138 | | |
118 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
119 | 145 | | |
120 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
121 | 149 | | |
122 | 150 | | |
123 | 151 | | |
| |||
127 | 155 | | |
128 | 156 | | |
129 | 157 | | |
130 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
0 commit comments