Skip to content

Commit 69cd228

Browse files
committed
ci: change release on commit
1 parent fd90716 commit 69cd228

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/release.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
on:
2-
release:
3-
types:
4-
- published
2+
push:
3+
branches:
4+
- "main"
55
jobs:
6-
generate:
6+
release:
7+
if: github.actor == 'KagChi'
78
runs-on: ubuntu-latest
89
steps:
910
- uses: actions/checkout@v3
@@ -21,6 +22,6 @@ jobs:
2122
run: yarn build
2223
- name: Publish source
2324
run: |
24-
npm publish --access public || true
25+
npm run release
2526
env:
2627
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'

0 commit comments

Comments
 (0)