chore(ci): Skip instead of cancel

This commit is contained in:
Donny/강동윤 2022-02-16 15:22:11 +09:00
parent d66f701a4a
commit 85caf291e2

View File

@ -76,38 +76,41 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Cancel if there's no change
if: steps.bump.outcome != 'success' || steps.bump.conclusion != 'success'
uses: andymckay/cancel-action@0.2
- name: Update changelog
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
run: |
yarn changelog
- name: Update lockfile
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
run: |
cargo metadata --format-version 1 > /dev/null
- name: Create commit
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
run: |
git add -A
git commit --author="SWC Bot <bot@swc.rs>" -m 'chore: Publish crates'
- uses: webfactory/ssh-agent@v0.5.4
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
with:
ssh-private-key: ${{ secrets.SWC_BOT_SSH }}
# Push back, using ssh
- name: Push back
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
run: |
git push git@github.com:swc-project/swc.git --no-verify
- name: Configure crates.io
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
run: |
cargo login $CARGO_TOKEN
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
- name: Publish crates
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
run: |
cargo mono publish --no-verify