mirror of
https://github.com/zhigang1992/connect.git
synced 2026-04-29 01:45:38 +08:00
fix: dont run publish on master commits without tag
This commit is contained in:
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -1,8 +1,6 @@
|
||||
name: Publish
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
tags:
|
||||
- '**'
|
||||
workflow_dispatch:
|
||||
|
||||
8
.github/workflows/version.yml
vendored
8
.github/workflows/version.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user