Skip to content

Commit 8cbf1af

Browse files
authored
Merge pull request #86 from grafana/kevinwcyu/fix-github-release-workflow
create github release on new version only
2 parents 54fc2b4 + dae21c1 commit 8cbf1af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/publish-npm.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
outputs:
1212
new_version: ${{ steps.version_check.outputs.version }}
13+
version_changed: ${{ steps.version_check.outputs.changed }}
1314
steps:
1415
- name: Checkout repository
1516
uses: actions/checkout@v2
@@ -65,6 +66,7 @@ jobs:
6566
name: Create GitHub Release
6667
runs-on: ubuntu-latest
6768
needs: npm-publish
69+
if: needs.npm-publish.outputs.version_changed == 'true'
6870
steps:
6971
- name: Checkout code
7072
uses: actions/checkout@v2

0 commit comments

Comments
 (0)