Write release notification comments to PRs (#3622)

This commit is contained in:
Bart Louwers
2025-07-16 16:07:54 +02:00
committed by GitHub
parent a465aee324
commit 635c3727bb
4 changed files with 186 additions and 1 deletions

View File

@@ -84,6 +84,8 @@ jobs:
with:
node-version-file: '.nvmrc'
- run: npm install
- name: Check if android-build was skipped
id: parent_workflow
run: node .github/scripts/check-job-skipped.ts

View File

@@ -83,6 +83,10 @@ jobs:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- uses: actions/setup-java@v4
with:
distribution: "temurin"
@@ -151,3 +155,12 @@ jobs:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
- run: npm install
working-directory: .
- name: Write release notifications
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node .github/scripts/notify-release-on-prs.ts --tag ${{ needs.android-create-release.outputs.version_tag }}
working-directory: .

View File

@@ -29,6 +29,7 @@ on:
permissions:
id-token: write # needed for AWS
contents: write # allow making a release
actions: write # for triggering ios-release-cocoapods.yml
jobs:
pre_job:
@@ -244,6 +245,11 @@ jobs:
(github.event_name == 'push' && steps.version-file-ios-changed.outputs.any_changed == 'true')
run: echo make_release=true >> "$GITHUB_ENV"
- uses: actions/setup-node@v4
if: env.make_release
with:
node-version-file: ".nvmrc"
- name: Build XCFramework
if: env.make_release
run: |
@@ -348,12 +354,21 @@ jobs:
"version":"${{ env.version }}",
"download_url":"${{ fromJSON(steps.github_release.outputs.assets)[0].browser_download_url }}"}}'
- run: npm install
working-directory: .
- name: Release (CocoaPods)
shell: bash -leo pipefail {0} # so pod is found
if: env.make_release
run: gh workflow run ios-release-cocoapods.yml --field version=${{ env.version }}
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Write release notifications
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node .github/scripts/notify-release-on-prs.ts --tag ios-v${{ env.version }}
working-directory: .
ios-build-cmake:
needs: pre_job