Skip to content

Commit

Permalink
Only create draft changelog if package published
Browse files Browse the repository at this point in the history
Also fixes a few places we were using the wrong step output
  • Loading branch information
scotttrinh committed Nov 9, 2023
1 parent 9a01a21 commit 27a0938
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
echo "Version in package.json has not changed. Skipping."
- name: Build 'edgedb' Changelog
if: steps.publish_driver.outputs.type != ''
id: github_driver_release
uses: mikepenz/release-changelog-builder-action@v3
env:
Expand Down Expand Up @@ -107,11 +108,12 @@ jobs:
echo "Published ${{ steps.publish_generate.outputs.type }} version: ${{ steps.publish_generate.outputs.version }}"
- name: If '@edgedb/generate' version unchanged
if: steps.publish_driver.outputs.type == ''
if: steps.publish_generate.outputs.type == ''
run: |
echo "Version in package.json has not changed. Skipping."
- name: Build '@edgedb/generate' Changelog
if: steps.publish_generate.outputs.type != ''
id: github_generate_release
uses: mikepenz/release-changelog-builder-action@v3
env:
Expand Down Expand Up @@ -159,11 +161,12 @@ jobs:
echo "Published ${{ steps.publish_auth_core.outputs.type }} version: ${{ steps.publish_auth_core.outputs.version }}"
- name: If '@edgedb/auth-core' version unchanged
if: steps.publish_driver.outputs.type == ''
if: steps.publish_auth_core.outputs.type == ''
run: |
echo "Version in package.json has not changed. Skipping."
- name: Build '@edgedb/auth-core' Changelog
if: steps.publish_auth_core.outputs.type != ''
id: github_auth_core_release
uses: mikepenz/release-changelog-builder-action@v3
env:
Expand Down Expand Up @@ -211,11 +214,12 @@ jobs:
echo "Published ${{ steps.publish_auth_nextjs.outputs.type }} version: ${{ steps.publish_auth_nextjs.outputs.version }}"
- name: If '@edgedb/auth-nextjs' version unchanged
if: steps.publish_driver.outputs.type == ''
if: steps.publish_auth_nextjs.outputs.type == ''
run: |
echo "Version in package.json has not changed. Skipping."
- name: Build '@edgedb/auth-nextjs' Changelog
if: steps.publish_auth_nextjs.outputs.type != ''
id: github_auth_nextjs_release
uses: mikepenz/release-changelog-builder-action@v3
env:
Expand Down

0 comments on commit 27a0938

Please sign in to comment.