Skip to content

Commit

Permalink
ci: change release on commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Apr 4, 2022
1 parent fd90716 commit 69cd228
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
on:
release:
types:
- published
push:
branches:
- "main"
jobs:
generate:
release:
if: github.actor == 'KagChi'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,6 +22,6 @@ jobs:
run: yarn build
- name: Publish source
run: |
npm publish --access public || true
npm run release
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'

0 comments on commit 69cd228

Please sign in to comment.