fix: dont run publish on master commits without tag

This commit is contained in:
Hank Stoever
2021-01-05 20:02:49 -08:00
parent 404ac4abe6
commit 0b7cb3ac50
2 changed files with 3 additions and 7 deletions

View File

@@ -1,8 +1,6 @@
name: Publish
on:
push:
branches:
- 'master'
tags:
- '**'
workflow_dispatch:

View File

@@ -70,6 +70,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
- name: Set Node Version
uses: actions/setup-node@v2-beta
with:
@@ -88,8 +90,4 @@ jobs:
git config --global user.email "${COMMIT_EMAIL}"
git config --global user.name "${COMMIT_USER}"
- name: Lerna Version
run: yarn lerna version --conventional-commits --no-push --yes
- name: Push changes
uses: ad-m/github-push-action@fe38f0a
with:
github_token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
run: yarn lerna version --conventional-commits --yes