From 910d4df8b71a1e25ce52c5f555b0513bbed67db1 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Tue, 26 May 2020 14:11:31 +0200 Subject: [PATCH] Publish new latest branch only if everything went allright --- .github/workflows/publish.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b02d95f..95a10a9 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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: |