Publish new latest branch only if everything went allright

This commit is contained in:
Joseph Garrone 2020-05-26 14:11:31 +02:00
parent 3a12067b15
commit 910d4df8b7

View file

@ -50,7 +50,6 @@ jobs:
run: |
git branch latest
git checkout latest
git push origin latest
- uses: actions/setup-node@v1
- run: npm ci
@ -75,12 +74,8 @@ jobs:
git config --local user.email "ts_ci@github.com"
git config --local user.name "ts_ci"
git add -A
git commit -am "🚀 Enabling shorter path [automatic]"
- name: Push changes
uses: ad-m/github-push-action@v0.5.0
with:
github_token: ${{ secrets.PAT }}
branch: latest
git commit -am "Enable shorter import path [automatic]"
- run: git push origin latest
- name: Release body
id: id_rb
run: |