Skip to content

Commit e171d98

Browse files
authored
Configure criteria for triggering the NPM publish (#23)
- allow to trigger NPM publish manually - auto publish to NPM only in case changes in `package.json` or `index.js`
1 parent d0bae5c commit e171d98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/publish.yml

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

33
on:
4+
workflow_dispatch: ~
45
push:
56
branches:
67
- main
8+
paths:
9+
- 'package.json'
10+
- 'index.js'
711

812
permissions:
913
contents: write

0 commit comments

Comments
 (0)