Misc | CI: Add tag-driven npm release workflow - #807
Conversation
|
This is nice!
Question: can we make GitHub releases for stable tags only? Otherwise the releases log can get noisy. |
|
It simplifies everything, agreed. I was actually thinking about recent beta releases (e.g. |
|
@50rayn Good point. We can try that and see if we like it or not |
cea9362 to
6d97e18
Compare
b731d92 to
b75c23a
Compare
b75c23a to
fceddbe
Compare
|
@50rayn we are considering this, trying to figure out what's the best approach for the setup. Will get back to you. Thanks for the contribution! |
fceddbe to
247c094
Compare
|
Sounds great, take your time! Happy to adjust the workflow once you've settled on an approach — just let me know what direction you'd prefer. A few thoughts while you're at it:
|
8cfed26 to
ef1a809
Compare

What
.github/workflows/release.yml— triggers on version tag pushes ([0-9]*, notv*— see note below)1.2.3) →publish:all; beta tag (1.2.3-beta.N) →publish:all:beta; anything else fails loudlysoftprops/action-gh-release)--provenance --access publictopublish:dist/publish:angularfor npm package provenance — supply-chain attestation linking each release back to this repo and workflow@unovis/devasprivate(examples app, should never be published)Why
Manual publish flow is error-prone. This wires up a standard tag → publish → release pipeline.
Note on tag format
unovis uses bare
X.Y.Ztags (notv-prefixed) — the onev1.4.5in history is a stray. The trigger glob is[0-9]*intentionally. Av1.6.6tag would not trigger this workflow. If the team switches tov-prefixed tags later, the trigger glob and the validation regex in the publish step both need to be updated.SetupNeeds anNPM_TOKENrepo secret with publish + provenance permissions before this can run.