Skip to content

Commit 3d366dd

Browse files
committed
fix: Auto enable npm publish on github action
1 parent 6fcc5c6 commit 3d366dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Release
22
on:
33
# comment this if you want to release by manual trigger action
4-
#push:
5-
# branches: [ master, main, next, beta, '*.x' ]
4+
push:
5+
branches: [ main ]
66

77
# manual trigger action at GitHub Actions Tab
88
workflow_dispatch: {}
@@ -13,5 +13,6 @@ jobs:
1313
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
1414
secrets:
1515
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
16+
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
1617
with:
1718
checkTest: false

0 commit comments

Comments
 (0)