diff --git a/.changeset/test-downstream-notification.md b/.changeset/test-downstream-notification.md new file mode 100644 index 00000000..9eeda6d5 --- /dev/null +++ b/.changeset/test-downstream-notification.md @@ -0,0 +1,5 @@ +--- +"@reuters-graphics/graphics-components": patch +--- + +Test downstream notification workflow with updated reusable workflow diff --git a/.github/workflows/notify-downstream.yaml b/.github/workflows/notify-downstream.yaml deleted file mode 100644 index 057e0d6b..00000000 --- a/.github/workflows/notify-downstream.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Notify downstream repositories - -on: - push: - tags: - - 'v*' - -jobs: - dispatch: - runs-on: ubuntu-latest - steps: - - name: Wait for npm propagation - run: sleep 30 - - - name: Dispatch to bluprint_graphics-kit - uses: peter-evans/repository-dispatch@v4 - with: - token: ${{ secrets.REPO_PAT_TOKEN }} - repository: reuters-graphics/bluprint_graphics-kit - event-type: dependency-updated diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 538fd517..7f58594c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,3 +12,18 @@ jobs: with: node_version: '20' publish_docs: true + + notify-downstream: + needs: release + if: needs.release.outputs.published == 'true' + runs-on: ubuntu-latest + steps: + - name: Wait for npm propagation + run: sleep 30 + + - name: Dispatch to bluprint_graphics-kit + uses: peter-evans/repository-dispatch@v4 + with: + token: ${{ secrets.REPO_PAT_TOKEN }} + repository: reuters-graphics/bluprint_graphics-kit + event-type: dependency-updated