mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Publish new latest branch only if everything went allright
This commit is contained in:
parent
3a12067b15
commit
910d4df8b7
1 changed files with 2 additions and 7 deletions
9
.github/workflows/publish.yaml
vendored
9
.github/workflows/publish.yaml
vendored
|
|
@ -50,7 +50,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git branch latest
|
git branch latest
|
||||||
git checkout latest
|
git checkout latest
|
||||||
git push origin latest
|
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
|
|
@ -75,12 +74,8 @@ jobs:
|
||||||
git config --local user.email "ts_ci@github.com"
|
git config --local user.email "ts_ci@github.com"
|
||||||
git config --local user.name "ts_ci"
|
git config --local user.name "ts_ci"
|
||||||
git add -A
|
git add -A
|
||||||
git commit -am "🚀 Enabling shorter path [automatic]"
|
git commit -am "Enable shorter import path [automatic]"
|
||||||
- name: Push changes
|
- run: git push origin latest
|
||||||
uses: ad-m/github-push-action@v0.5.0
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.PAT }}
|
|
||||||
branch: latest
|
|
||||||
- name: Release body
|
- name: Release body
|
||||||
id: id_rb
|
id: id_rb
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue