From dae21c1a665ee71e07d21909fb728d3c9d1e717b Mon Sep 17 00:00:00 2001 From: Kevin Yu Date: Mon, 10 Jun 2024 15:00:05 -0700 Subject: [PATCH] create github release on new version only --- .github/workflows/publish-npm.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 7316a22..9bdea67 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -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 @@ -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