Skip to content

Commit

Permalink
Merge pull request #86 from grafana/kevinwcyu/fix-github-release-work…
Browse files Browse the repository at this point in the history
…flow

create github release on new version only
  • Loading branch information
kevinwcyu authored Jun 11, 2024
2 parents 54fc2b4 + dae21c1 commit 8cbf1af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
new_version: ${{ steps.version_check.outputs.version }}
version_changed: ${{ steps.version_check.outputs.changed }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -65,6 +66,7 @@ jobs:
name: Create GitHub Release
runs-on: ubuntu-latest
needs: npm-publish
if: needs.npm-publish.outputs.version_changed == 'true'
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit 8cbf1af

Please sign in to comment.