Skip to content

Commit 134c300

Browse files
Vrtak-CZclaude
andcommitted
fix(ci): trigger npm publish on tag push instead of release event
Events created by the default GITHUB_TOKEN don't trigger other workflows, so the release-created publish event never reached npm-publish. Switching to tag push trigger with github.ref_name. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4eb476c commit 134c300

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Publish to npm
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- "[0-9]+.[0-9]+.[0-9]+"
67

78
jobs:
89
publish:
@@ -24,8 +25,8 @@ jobs:
2425
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
2526
restore-keys: ${{ runner.os }}-bun-
2627
- run: bun install --frozen-lockfile
27-
- name: Set version from release tag
28-
run: npm version "${{ github.event.release.tag_name }}" --no-git-tag-version --allow-same-version
28+
- name: Set version from tag
29+
run: npm version "${{ github.ref_name }}" --no-git-tag-version --allow-same-version
2930
- run: bun run check
3031
- run: bun run typecheck
3132
- run: bun test

0 commit comments

Comments
 (0)