Skip to content
Open
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
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,34 @@ jobs:
publish-mode: oidc
build-command: |
npm ci

# On a successful publish (optic publishes when its release PR merges into
# main), tell downstream repos to fast-track the bump of this package, rather
# than waiting for their daily Dependabot run. Receiver: digidem/comapeo-core-react-native.
notify-downstream:
needs: release
if: >-
needs.release.result == 'success' &&
github.event_name == 'pull_request' &&
github.event.pull_request.merged == true
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
downstream:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets add comapeo-cloud to this. I think Desktop and Mobile can pull it since they likely need more changes to update and pair it with feature releases

Suggested change
downstream:
downstream:
- owner: digidem
repo: comapeo-cloud

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. I'm in the process of turning this into a shared action so there's only one place where we define the notification targets for all our deps

- owner: digidem
repo: comapeo-core-react-native
steps:
- uses: actions/create-github-app-token@v3
id: token
with:
app-id: ${{ vars.RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
owner: ${{ matrix.downstream.owner }}
repositories: ${{ matrix.downstream.repo }}
- env:
GH_TOKEN: ${{ steps.token.outputs.token }}
run: |
gh api repos/${{ matrix.downstream.owner }}/${{ matrix.downstream.repo }}/dispatches \
-f event_type=first-party-release \
-f 'client_payload[package]=@comapeo/core'
Loading