Skip to content

Commit 37fd7b2

Browse files
authored
ci(npm-publish): trigger on release published, not v* tags (#104)
Trigger npm-publish on the GitHub release 'published' event instead of a 'v*' tag-name filter, which kept missing plain '0.9.x' tags. workflow_dispatch stays as a manual fallback.
1 parent 9f6f17c commit 37fd7b2

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: NPM Publish
22

3+
# Publish when a GitHub Release is published, regardless of the tag's naming
4+
# (the project uses plain "0.9.x" tags now, but older ones were "v0.9.x" — a
5+
# tag-name filter kept missing the plain ones). The release commit's
6+
# package.json is the version source. workflow_dispatch remains a manual fallback.
37
on:
4-
push:
5-
tags:
6-
- 'v*'
8+
release:
9+
types: [published]
710
workflow_dispatch:
811
inputs:
912
version:

0 commit comments

Comments
 (0)