Skip to content

Commit b4fbe48

Browse files
committed
CI for build and release
1 parent b46d437 commit b4fbe48

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

.changeset/sharp-pots-enjoy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"github-issue-alert": patch
3+
---
4+
5+
CI for build and release

.github/workflows/release.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,21 @@ jobs:
2828
- name: Create Release Pull Request or Publish
2929
id: changesets
3030
uses: changesets/action@v1
31+
with:
32+
publish: |
33+
yarn changeset tag
34+
git push --follow-tags
3135
env:
3236
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3337

34-
- name: Create Tag and Push
35-
if: steps.changesets.outputs.hasChangesets == 'false'
36-
run: |
37-
yarn changeset tag
38-
git push --follow-tags
38+
# - name: Create Tag and Push
39+
# if: steps.changesets.outputs.hasChangesets == 'false'
40+
# run: |
41+
# yarn changeset tag
42+
# git push --follow-tags
3943

4044
- name: Get latest Git tag
41-
if: steps.changesets.outputs.hasChangesets == 'false'
45+
if: steps.changesets.outputs.hasChangesets == 'false' # If hasChangesets == 'false', then changesets is in Publish mode
4246
id: get_tag
4347
run: |
4448
tag=$(git describe --tags --abbrev=0 || echo "No tags found")

0 commit comments

Comments
 (0)