From 69cd22893552ffe0ef9bd992364c8fd33cb95e4d Mon Sep 17 00:00:00 2001 From: KChi <59391215+KagChi@users.noreply.github.com> Date: Mon, 4 Apr 2022 17:30:58 +0700 Subject: [PATCH] ci: change release on commit --- .github/workflows/release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 898a669..43413e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 }}' \ No newline at end of file