Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ jobs:
# don't run on forks
if: ${{ github.repository_owner == 'SmartThingsCommunity' }}

name: Release
name: NPM Release

runs-on: ubuntu-latest

outputs:
cli-released: ${{ steps.changesets.outputs.published }}
cli-version: ${{ steps.cli-metadata.outputs.version }}
cli-tag: ${{ steps.cli-metadata.outputs.tag }}

Expand Down Expand Up @@ -47,8 +48,8 @@ jobs:

- name: Debug Published Packages
run: |
echo "Published Packages:"
echo '${{ steps.changesets.outputs.publishedPackages }}' | jq .
echo 'Published Packages: ${{ steps.changesets.outputs.publishedPackages }}' | jq .
echo 'Published: ${{ steps.changesets.outputs.published }}'

- name: Derive Required Metadata
id: cli-metadata
Expand Down Expand Up @@ -169,6 +170,8 @@ jobs:
github-release:
needs: [npm-release, package]

if: needs.npm-release.outputs.cli-released == 'true'

name: Create Github Release

runs-on: ubuntu-latest
Expand Down Expand Up @@ -207,6 +210,8 @@ jobs:
homebrew-formula:
needs: [npm-release, github-release]

if: needs.npm-release.outputs.cli-released == 'true'

name: Bump Homebrew Formula

runs-on: macos-latest
Expand All @@ -232,6 +237,8 @@ jobs:
windows-installer:
needs: [npm-release, package, github-release]

if: needs.npm-release.outputs.cli-released == 'true'

name: Release Windows Installer

# ensure WiX Toolset is installed on image before updating runner
Expand Down