Skip to content

Commit 22388c9

Browse files
committed
refactor: gitHub Actions workflow to trigger on release creation
1 parent 6466d30 commit 22388c9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
name: Node.js Package
55

66
on:
7-
# Runs on pushes targeting the default branch
8-
push:
9-
branches: ["main"]
10-
paths:
11-
- "package.json"
7+
release:
8+
types: [created]
129

1310
# Allows you to run this workflow manually from the Actions tab
1411
workflow_dispatch:

0 commit comments

Comments
 (0)