From 74af80035235b6a39744e7216ca952d7c108f2da Mon Sep 17 00:00:00 2001 From: lukasIO Date: Mon, 23 Nov 2026 10:54:35 +0100 Subject: [PATCH 1/4] Release with verwalter instead of changesets/action Replace the changesets/action release flow with verwalter. The release PR is regenerated from main on each push. Merging it tags, creates the GitHub release and publishes to Maven Central. gradle.properties now holds the last released version, and android.yml publishes the next patch version as a SNAPSHOT through -PVERSION_NAME. Co-Authored-By: Claude Opus 5.5 --- .changeset/config.json | 15 - .github/workflows/android.yml | 13 +- .github/workflows/changeset-check.yml | 21 + .github/workflows/changesets.yml | 183 ---- .github/workflows/release-pr.yml | 29 + .github/workflows/release.yml | 154 ++-- .github/workflows/update_snapshot_pr.yml | 36 - CONTRIBUTING.md | 16 +- README.md | 4 +- RELEASING.md | 59 ++ ci/get_version.sh | 6 - ci/update_android_gradle_version.sh | 21 - ci/update_snapshot_version.sh | 20 - package.json | 16 - pnpm-lock.yaml | 1031 ---------------------- release-instructions.md | 10 - verwalter.toml | 13 + 17 files changed, 246 insertions(+), 1401 deletions(-) delete mode 100644 .changeset/config.json create mode 100644 .github/workflows/changeset-check.yml delete mode 100644 .github/workflows/changesets.yml create mode 100644 .github/workflows/release-pr.yml delete mode 100644 .github/workflows/update_snapshot_pr.yml create mode 100644 RELEASING.md delete mode 100755 ci/get_version.sh delete mode 100755 ci/update_android_gradle_version.sh delete mode 100755 ci/update_snapshot_version.sh delete mode 100644 package.json delete mode 100644 pnpm-lock.yaml delete mode 100644 release-instructions.md create mode 100644 verwalter.toml diff --git a/.changeset/config.json b/.changeset/config.json deleted file mode 100644 index 442a4941c..000000000 --- a/.changeset/config.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json", - "changelog": [ - "@livekit/changesets-changelog-github", - { "repo": "livekit/client-sdk-android" } - ], - "commit": false, - "fixed": [], - "linked": [], - "access": "public", - "baseBranch": "main", - "updateInternalDependencies": "patch", - "ignore": [], - "privatePackages": { "version": true, "tag": true } -} diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 8520fcaf6..a75ab8231 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -162,13 +162,14 @@ jobs: BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} - - name: get version name + # gradle.properties holds the last release; snapshots are the next patch. + - name: get snapshot version if: github.event_name == 'push' - run: echo "::set-output name=version_name::$(cat gradle.properties | grep VERSION_NAME | cut -d "=" -f2)" - id: version_name + run: echo "version=$(bash ./ci/increment_semver.sh -p "$(sed -n 's/^VERSION_NAME=//p' gradle.properties)")-SNAPSHOT" >> "$GITHUB_OUTPUT" + id: snapshot - name: Create gpg key and import into gradle properties - if: github.event_name == 'push' && contains(steps.version_name.outputs.version_name,'SNAPSHOT') + if: github.event_name == 'push' run: | echo $GPG_KEY_ARMOR | base64 --decode > ./release.asc gpg --quiet --output $GITHUB_WORKSPACE/release.gpg --dearmor ./release.asc @@ -187,8 +188,8 @@ jobs: PROFILE_ID: ${{ secrets.STAGING_PROFILE_ID }} - name: Publish snapshot - if: github.event_name == 'push' && contains(steps.version_name.outputs.version_name,'SNAPSHOT') - run: ./gradlew publishReleasePublicationToMavenRepository + if: github.event_name == 'push' + run: ./gradlew publishReleasePublicationToMavenRepository -PVERSION_NAME=${{ steps.snapshot.outputs.version }} # Setting up diffuse artifacts - name: Setup cache for base source file for diffuse diff --git a/.github/workflows/changeset-check.yml b/.github/workflows/changeset-check.yml new file mode 100644 index 000000000..c67c93803 --- /dev/null +++ b/.github/workflows/changeset-check.yml @@ -0,0 +1,21 @@ +# Fails a PR that changes the SDK without a changeset, with a comment that +# links to a prefilled changeset file. The `internal` label skips the check. +name: Changeset check + +on: + pull_request: + types: [opened, synchronize, reopened, labeled, unlabeled] + branches: [main] + +permissions: + contents: read + pull-requests: write + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + with: + command: check diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml deleted file mode 100644 index 18fa7c2dc..000000000 --- a/.github/workflows/changesets.yml +++ /dev/null @@ -1,183 +0,0 @@ -name: Changeset action - -on: - workflow_dispatch: - push: - branches: - - main - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -permissions: - contents: write - pull-requests: write - -jobs: - release: - name: Release - runs-on: ubuntu-latest - - steps: - - name: Checkout Repo - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 - with: - version: 10 - - - name: Use Node.js 24 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 - with: - node-version: 24 - cache: "pnpm" - - - name: Install dependencies - run: pnpm install - - - name: Make PR title - id: getver - run: | - pnpm ci:version - echo "TITLE=v$(./ci/get_version.sh)" >> "$GITHUB_OUTPUT" - git restore . - env: - # requires repo and read:user access - GITHUB_TOKEN: ${{ secrets.CHANGESET_GH_TOKEN }} - - - name: Create Release Pull Request - id: changesets - uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0 - with: - title: ${{ steps.getver.outputs.TITLE }} - commit: ${{ steps.getver.outputs.TITLE }} - version: pnpm ci:version - publish: pnpm ci:publish - env: - # requires repo and read:user access - GITHUB_TOKEN: ${{ secrets.CHANGESET_GH_TOKEN }} - outputs: - publishedPackages: ${{ steps.changesets.outputs.publishedPackages }} - hasPublished: ${{ steps.changesets.outputs.published == 'true' }} - - debug-outputs: - needs: release - name: Debug - runs-on: ubuntu-latest - steps: - - name: "echo outputs" - run: | - echo ${{ needs.release.outputs.publishedPackages }} - echo ${{ needs.release.outputs.hasPublished }} - - publish: - needs: release - name: Publish To Maven - if: ${{ needs.release.outputs.hasPublished == 'true' }} - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./client-sdk-android - steps: - - name: checkout client-sdk-android - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - path: ./client-sdk-android - submodules: recursive - - - name: set up JDK 17 - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 - with: - java-version: '17' - distribution: 'adopt' - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - - name: Build docs - run: ./gradlew dokkaHtml - - - name: Upload to S3 - run: aws s3 cp ./livekit-android-sdk/build/dokka/html/ s3://livekit-docs/client-sdk-android/ --recursive - env: - AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }} - AWS_DEFAULT_REGION: "us-east-1" - - - name: Fetch livekit-ffi host library - id: uniffi - run: | - lib_dir=$(./ci/fetch_uniffi_cdylib.sh) - echo "lib_dir=$lib_dir" >> "$GITHUB_OUTPUT" - - - name: Build with Gradle - run: ./gradlew livekit-android-sdk:assembleRelease livekit-android-camerax:assembleRelease livekit-android-test:testRelease "-PlivekitUniffiLibDir=${{ steps.uniffi.outputs.lib_dir }}" - - - name: Create gpg key and import into gradle properties - run: | - echo $GPG_KEY_ARMOR | base64 --decode > ./release.asc - gpg --quiet --output $GITHUB_WORKSPACE/release.gpg --dearmor ./release.asc - sed -i -e "s,nexusUsername=,nexusUsername=$NEXUS_USERNAME,g" gradle.properties - sed -i -e "s,nexusPassword=,nexusPassword=$NEXUS_PASSWORD,g" gradle.properties - sed -i -e "s,signing.keyId=,signing.keyId=$GPG_KEY_ID,g" gradle.properties - sed -i -e "s,signing.password=,signing.password=$GPG_PASSWORD,g" gradle.properties - sed -i -e "s,signing.secretKeyRingFile=,signing.secretKeyRingFile=$GITHUB_WORKSPACE/release.gpg,g" gradle.properties - sed -i -e "s,STAGING_PROFILE_ID=,STAGING_PROFILE_ID=$PROFILE_ID,g" gradle.properties - env: - GPG_KEY_ARMOR: "${{ secrets.SIGNING_KEY_ARMOR }}" - GPG_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} - GPG_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} - NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} - NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} - PROFILE_ID: ${{ secrets.STAGING_PROFILE_ID }} - - - name: Publish to sonatype - run: ./gradlew --no-configuration-cache publishReleasePublicationToMavenRepository closeAndReleaseMavenStagingRepository -Dorg.gradle.parallel=false - - update-snapshot: - needs: release - name: Update SNAPSHOT - if: ${{ needs.release.outputs.hasPublished == 'true' }} - runs-on: ubuntu-latest - - steps: - - name: Checkout Repo - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - - name: Update snapshot - id: update - run: echo "SNAPSHOT_VERSION=$(./ci/update_snapshot_version.sh)" >> "$GITHUB_OUTPUT" - - - name: Log version - env: - SNAPSHOT_VERSION: ${{ steps.update.outputs.SNAPSHOT_VERSION }} - run: echo $SNAPSHOT_VERSION - - - name: Create Update SNAPSHOT Pull Request - uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 - with: - token: ${{ secrets.CHANGESET_GH_TOKEN }} - branch: dl/update_snapshot_ver - title: Prepare snapshot version ${{ steps.update.outputs.SNAPSHOT_VERSION }} - commit-message: Prepare snapshot version ${{ steps.update.outputs.SNAPSHOT_VERSION }} - - notify-components-android: - needs: release - name: Notify Components Android - if: ${{ needs.release.outputs.hasPublished == 'true' }} - runs-on: ubuntu-latest - - steps: - - name: Checkout Repo - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - - name: Get version - id: version - run: echo "VERSION=$(./ci/get_version.sh)" >> "$GITHUB_OUTPUT" - - - name: Dispatch to components-android - uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 - with: - token: ${{ secrets.E2E_DISPATCH_TOKEN }} - repository: livekit/components-android - event-type: update-livekit-version - client-payload: '{"version": "${{ steps.version.outputs.VERSION }}"}' diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml new file mode 100644 index 000000000..855f2f421 --- /dev/null +++ b/.github/workflows/release-pr.yml @@ -0,0 +1,29 @@ +# Keeps one release PR open while changesets are pending. Runs on every +# push to main and regenerates the release branch from main. +name: Release PR + +on: + push: + branches: [main] + +permissions: + contents: write + pull-requests: write + +concurrency: + group: release-pr + cancel-in-progress: true + +jobs: + pr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 # the commit that added a changeset gives its changelog line the PR and author + - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + with: + command: pr + # The App token lets the release PR trigger CI; github.token does not. + app-client-id: ${{ secrets.VERWALTER_RELEASE_CLIENT_ID }} + app-private-key: ${{ secrets.VERWALTER_RELEASE_APP_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 74c3faaec..d827a23f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,66 +1,120 @@ -name: Manual Publish +# After a release PR merges: tag and create the GitHub release, then build +# and publish to Maven Central. The step that cannot be undone comes last. +# Docs upload and the components-android dispatch run after the publish. +name: Release on: + pull_request: + types: [closed] + branches: [main] + # Re-run by hand after a fix: `verwalter release` resumes from the + # current state and skips what is done. `publish` skips a version that + # Maven Central already has. workflow_dispatch: + inputs: + ref: + description: Commit or tag to build and publish. Set it to the release tag when the tag exists. Empty is the branch head. + required: false + default: "" + +permissions: + contents: write jobs: + release: + # Only a release PR the tool opened: the branch prefix alone would let + # any pushed `release/*` branch trigger a publish. + if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/') && github.event.pull_request.user.login == 'verwalter-release[bot]' && contains(github.event.pull_request.body, '')) + runs-on: ubuntu-latest + outputs: + released: ${{ steps.verwalter.outputs.released }} + releases: ${{ steps.verwalter.outputs.releases }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + # The merge commit itself: a push to main right after the merge + # must not move the tag. + ref: ${{ github.event.pull_request.merge_commit_sha || inputs.ref || github.sha }} + fetch-depth: 0 + - id: verwalter + uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + with: + command: release + publish: + needs: release + if: needs.release.outputs.released == 'true' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest - defaults: - run: - working-directory: ./client-sdk-android + permissions: + contents: write # the tool makes the draft release public after the publish steps: - - name: checkout client-sdk-android - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - path: ./client-sdk-android - submodules: recursive + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.event.pull_request.merge_commit_sha || inputs.ref || github.sha }} + fetch-depth: 0 # tags decide what is published + submodules: recursive - - name: set up JDK 17 - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 - with: - java-version: '17' - distribution: 'adopt' + - name: Set up JDK 17 + uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + with: + java-version: '17' + distribution: 'adopt' - - name: Grant execute permission for gradlew - run: chmod +x gradlew + - name: Fetch livekit-ffi host library + id: uniffi + run: | + lib_dir=$(./ci/fetch_uniffi_cdylib.sh) + echo "lib_dir=$lib_dir" >> "$GITHUB_OUTPUT" - - name: Build docs - run: ./gradlew dokkaHtml + - name: Build and test + run: ./gradlew livekit-android-sdk:assembleRelease livekit-android-camerax:assembleRelease livekit-android-test:testRelease "-PlivekitUniffiLibDir=${{ steps.uniffi.outputs.lib_dir }}" - - name: Upload to S3 - run: aws s3 cp ./livekit-android-sdk/build/dokka/html/ s3://livekit-docs/client-sdk-android/ --recursive - env: - AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }} - AWS_DEFAULT_REGION: "us-east-1" + - name: Write signing and Sonatype credentials + run: | + echo $GPG_KEY_ARMOR | base64 --decode > ./release.asc + gpg --quiet --output $GITHUB_WORKSPACE/release.gpg --dearmor ./release.asc + sed -i -e "s,nexusUsername=,nexusUsername=$NEXUS_USERNAME,g" gradle.properties + sed -i -e "s,nexusPassword=,nexusPassword=$NEXUS_PASSWORD,g" gradle.properties + sed -i -e "s,signing.keyId=,signing.keyId=$GPG_KEY_ID,g" gradle.properties + sed -i -e "s,signing.password=,signing.password=$GPG_PASSWORD,g" gradle.properties + sed -i -e "s,signing.secretKeyRingFile=,signing.secretKeyRingFile=$GITHUB_WORKSPACE/release.gpg,g" gradle.properties + sed -i -e "s,STAGING_PROFILE_ID=,STAGING_PROFILE_ID=$PROFILE_ID,g" gradle.properties + env: + GPG_KEY_ARMOR: "${{ secrets.SIGNING_KEY_ARMOR }}" + GPG_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} + GPG_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} + NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} + NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} + PROFILE_ID: ${{ secrets.STAGING_PROFILE_ID }} - - name: Fetch livekit-ffi host library - id: uniffi - run: | - lib_dir=$(./ci/fetch_uniffi_cdylib.sh) - echo "lib_dir=$lib_dir" >> "$GITHUB_OUTPUT" + # Runs publish.command from verwalter.toml, skipped when Maven Central + # already has the version. + - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + env: + GH_TOKEN: ${{ github.token }} + with: + command: publish + releases: ${{ needs.release.outputs.releases }} - - name: Build with Gradle - run: ./gradlew livekit-android-sdk:assembleRelease livekit-android-camerax:assembleRelease livekit-android-test:testRelease "-PlivekitUniffiLibDir=${{ steps.uniffi.outputs.lib_dir }}" + - name: Get version + id: version + run: echo "version=$(sed -n 's/^VERSION_NAME=//p' gradle.properties)" >> "$GITHUB_OUTPUT" - - name: Create gpg key and import into gradle properties - run: | - echo $GPG_KEY_ARMOR | base64 --decode > ./release.asc - gpg --quiet --output $GITHUB_WORKSPACE/release.gpg --dearmor ./release.asc - sed -i -e "s,nexusUsername=,nexusUsername=$NEXUS_USERNAME,g" gradle.properties - sed -i -e "s,nexusPassword=,nexusPassword=$NEXUS_PASSWORD,g" gradle.properties - sed -i -e "s,signing.keyId=,signing.keyId=$GPG_KEY_ID,g" gradle.properties - sed -i -e "s,signing.password=,signing.password=$GPG_PASSWORD,g" gradle.properties - sed -i -e "s,signing.secretKeyRingFile=,signing.secretKeyRingFile=$GITHUB_WORKSPACE/release.gpg,g" gradle.properties - sed -i -e "s,STAGING_PROFILE_ID=,STAGING_PROFILE_ID=$PROFILE_ID,g" gradle.properties - env: - GPG_KEY_ARMOR: "${{ secrets.SIGNING_KEY_ARMOR }}" - GPG_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} - GPG_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} - NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} - NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} - PROFILE_ID: ${{ secrets.STAGING_PROFILE_ID }} + # The docs site holds one version: an rc must not replace the last final release. + - name: Build and upload docs + if: ${{ !contains(steps.version.outputs.version, '-') }} + run: | + ./gradlew dokkaHtml + aws s3 cp ./livekit-android-sdk/build/dokka/html/ s3://livekit-docs/client-sdk-android/ --recursive + env: + AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }} + AWS_DEFAULT_REGION: "us-east-1" - - name: Publish to sonatype - run: ./gradlew --no-configuration-cache publishReleasePublicationToMavenRepository closeAndReleaseMavenStagingRepository -Dorg.gradle.parallel=false + - name: Dispatch to components-android + uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 + with: + token: ${{ secrets.E2E_DISPATCH_TOKEN }} + repository: livekit/components-android + event-type: update-livekit-version + client-payload: '{"version": "${{ steps.version.outputs.version }}"}' diff --git a/.github/workflows/update_snapshot_pr.yml b/.github/workflows/update_snapshot_pr.yml deleted file mode 100644 index b5b8587c1..000000000 --- a/.github/workflows/update_snapshot_pr.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Manually create SNAPSHOT update PR - -on: - workflow_dispatch: - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -permissions: - contents: write - pull-requests: write - -jobs: - update-snapshot: - name: Update SNAPSHOT - runs-on: ubuntu-latest - - steps: - - name: Checkout Repo - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - - name: Update snapshot - id: update - run: echo "SNAPSHOT_VERSION=$(./ci/update_snapshot_version.sh)" >> "$GITHUB_OUTPUT" - - - name: Log version - env: - SNAPSHOT_VERSION: ${{ steps.update.outputs.SNAPSHOT_VERSION }} - run: echo $SNAPSHOT_VERSION - - - name: Create Update SNAPSHOT Pull Request - uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 - with: - token: ${{ secrets.CHANGESET_GH_TOKEN }} - branch: dl/update_snapshot_ver - title: Prepare snapshot version ${{ steps.update.outputs.SNAPSHOT_VERSION }} - commit-message: Prepare snapshot version ${{ steps.update.outputs.SNAPSHOT_VERSION }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b4f749ecc..3796aa635 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,13 +5,19 @@ We appreciate any pull requests for changes you may have in mind! Here are some * Add a changeset file which explains the changes contained in the PR. - In the root folder, execute the following commands: - ``` - pnpm install - pnpm changeset + Add a file such as `.changeset/my-change.md`: + ```md + --- + "client-sdk-android": patch + --- + + One sentence for users of the SDK. ``` - Follow the instructions on screen to create the changeset file. + Use `patch` for a fix and `minor` for a new API. If a PR has no changeset, the + changeset check comments with a link to a prefilled file. With + [verwalter](https://github.com/livekit/verwalter) installed, you can also run + `verwalter changeset --level patch`. * Format your code using `./gradlew spotlessApply`. diff --git a/README.md b/README.md index cdb69b92b..a1ccd2b08 100644 --- a/README.md +++ b/README.md @@ -96,8 +96,8 @@ dependencies { // Track processors, such as virtual background implementation "io.livekit:livekit-android-track-processors:$livekit_version" - // Snapshots of the latest development version are available at: - // implementation "io.livekit:livekit-android:2.30.1-SNAPSHOT" + // Snapshots of the latest development version are published as the next patch version: + // implementation "io.livekit:livekit-android:-SNAPSHOT" } ``` diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 000000000..079d77e62 --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,59 @@ +# Releasing client-sdk-android + +This repository releases with [verwalter](https://github.com/livekit/verwalter). +The commands that are the same in every repository are in the +[verwalter cheat sheet](https://github.com/livekit/verwalter/blob/main/docs/cheat-sheet.md). +This file holds what is specific to this repository. + +## Packages + +| Package | Tag | Goes to | +|---|---|---| +| `client-sdk-android` | `v` | Maven Central: `io.livekit:livekit-android`, `livekit-android-camerax`, `livekit-android-track-processors`, `livekit-android-test` | + +The version is in `gradle.properties` (`VERSION_NAME`) and `README.md`. +Do not change it by hand. The release PR changes it. + +## Workflows + +| File | Starts when | Does | +|---|---|---| +| `changeset-check.yml` | A PR is opened or updated | Fails a PR without a changeset. The `internal` label skips the check. | +| `release-pr.yml` | A push to `main` | Keeps the release PR `release/main` current. | +| `release.yml` | The release PR merges | Tags, creates the GitHub release, publishes to Maven Central, uploads the docs, notifies `livekit/components-android`. | +| `android.yml` | A push to `main` | Publishes `-SNAPSHOT` to the Sonatype snapshot repository. | + +## Release + +1. Merge the release PR. +2. Watch the run of `release.yml`: `gh run list --workflow release.yml --limit 1`. + +A release is complete when: + +- the tag `v` has a public GitHub release +- `https://repo1.maven.org/maven2/io/livekit/livekit-android//` exists. + Maven Central can show a new version 30 minutes late. + +## Pre-release + +Not used. An rc on Maven Central is a permanent release. + +## A release failed + +Find the cause first. The paths by cause are in the +[recovery section](https://github.com/livekit/verwalter/blob/main/docs/release-workflows.md#recovery). + +| Situation | Command | +|---|---| +| A job failed for a transient reason | `gh run rerun --failed` | +| The workflow file needed a fix, and the fix is on `main` | `gh workflow run release.yml -f ref=` | +| The released commit is wrong | `verwalter release --abandon `, then a changeset and the next version | + +While Sonatype still processes an upload, do not re-run the publish job. +The existence check reads `repo1.maven.org`, which shows a new version +late. A second upload of the same version fails at Sonatype. + +## After a release + +`release.yml` dispatches `update-livekit-version` to +`livekit/components-android`. Merge the PR that it opens there. diff --git a/ci/get_version.sh b/ci/get_version.sh deleted file mode 100755 index eb2215ae1..000000000 --- a/ci/get_version.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -set -e -set -x - -PACKAGE_VERSION=$(cat ./package.json | jq -r '.version') -echo "$PACKAGE_VERSION" diff --git a/ci/update_android_gradle_version.sh b/ci/update_android_gradle_version.sh deleted file mode 100755 index b49d714e8..000000000 --- a/ci/update_android_gradle_version.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -set -e -set -x - -PACKAGE_VERSION=$(cat ./package.json | jq -r '.version') ->&2 echo "updating gradle version name to $PACKAGE_VERSION" - -SNAPSHOT_VERSION=$(./ci/increment_semver.sh -p $PACKAGE_VERSION)"-SNAPSHOT" ->&2 echo "next snapshot version to $SNAPSHOT_VERSION" - -# sed command works only on linux based systems as macOS version expects a backup file passed additionally - -if [ "$(uname)" == "Darwin" ]; then - ARGS=('') -else - ARGS=() -fi - -sed -i "${ARGS[@]}" -e "/VERSION_NAME=/ s/=.*/=$PACKAGE_VERSION/" ./gradle.properties -sed -i "${ARGS[@]}" -e '/def livekit_version =/ s/".*"/"'"$PACKAGE_VERSION"'"/' ./README.md -sed -i "${ARGS[@]}" -e '/SNAPSHOT/ s/".*"/"'"io.livekit:livekit-android:$SNAPSHOT_VERSION"'"/' ./README.md diff --git a/ci/update_snapshot_version.sh b/ci/update_snapshot_version.sh deleted file mode 100755 index f63072b49..000000000 --- a/ci/update_snapshot_version.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e -set -x - -PACKAGE_VERSION=$(cat ./package.json | jq -r '.version') ->&2 echo "current version: $PACKAGE_VERSION" - -SNAPSHOT_VERSION=$(./ci/increment_semver.sh -p $PACKAGE_VERSION)"-SNAPSHOT" ->&2 echo "updating snapshot version to $SNAPSHOT_VERSION" - -# sed command works only on linux based systems as macOS version expects a backup file passed additionally -if [ "$(uname)" == "Darwin" ]; then - ARGS=('') -else - ARGS=() -fi - -sed -i "${ARGS[@]}" -e "/VERSION_NAME=/ s/=.*/=$SNAPSHOT_VERSION/" ./gradle.properties - -echo $SNAPSHOT_VERSION \ No newline at end of file diff --git a/package.json b/package.json deleted file mode 100644 index e39563ac6..000000000 --- a/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "client-sdk-android", - "version": "2.30.0", - "repository": "https://github.com/livekit/client-sdk-android.git", - "license": "Apache License 2.0", - "private": true, - "devDependencies": { - "@changesets/cli": "^2.27.7", - "@livekit/changesets-changelog-github": "^0.0.4" - }, - "scripts": { - "changeset": "changeset", - "ci:publish": "changeset publish", - "ci:version": "changeset version && ./ci/update_android_gradle_version.sh" - } -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml deleted file mode 100644 index 7ac9bc2e5..000000000 --- a/pnpm-lock.yaml +++ /dev/null @@ -1,1031 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - devDependencies: - '@changesets/cli': - specifier: ^2.27.7 - version: 2.27.7 - '@livekit/changesets-changelog-github': - specifier: ^0.0.4 - version: 0.0.4 - -packages: - - '@babel/runtime@7.25.0': - resolution: {integrity: sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw==} - engines: {node: '>=6.9.0'} - - '@changesets/apply-release-plan@7.0.4': - resolution: {integrity: sha512-HLFwhKWayKinWAul0Vj+76jVx1Pc2v55MGPVjZ924Y/ROeSsBMFutv9heHmCUj48lJyRfOTJG5+ar+29FUky/A==} - - '@changesets/assemble-release-plan@6.0.3': - resolution: {integrity: sha512-bLNh9/Lgl1VwkjWZTq8JmRqH+hj7/Yzfz0jsQ/zJJ+FTmVqmqPj3szeKOri8O/hEM8JmHW019vh2gTO9iq5Cuw==} - - '@changesets/changelog-git@0.2.0': - resolution: {integrity: sha512-bHOx97iFI4OClIT35Lok3sJAwM31VbUM++gnMBV16fdbtBhgYu4dxsphBF/0AZZsyAHMrnM0yFcj5gZM1py6uQ==} - - '@changesets/cli@2.27.7': - resolution: {integrity: sha512-6lr8JltiiXPIjDeYg4iM2MeePP6VN/JkmqBsVA5XRiy01hGS3y629LtSDvKcycj/w/5Eur1rEwby/MjcYS+e2A==} - hasBin: true - - '@changesets/config@3.0.2': - resolution: {integrity: sha512-cdEhS4t8woKCX2M8AotcV2BOWnBp09sqICxKapgLHf9m5KdENpWjyrFNMjkLqGJtUys9U+w93OxWT0czorVDfw==} - - '@changesets/errors@0.2.0': - resolution: {integrity: sha512-6BLOQUscTpZeGljvyQXlWOItQyU71kCdGz7Pi8H8zdw6BI0g3m43iL4xKUVPWtG+qrrL9DTjpdn8eYuCQSRpow==} - - '@changesets/get-dependents-graph@2.1.1': - resolution: {integrity: sha512-LRFjjvigBSzfnPU2n/AhFsuWR5DK++1x47aq6qZ8dzYsPtS/I5mNhIGAS68IAxh1xjO9BTtz55FwefhANZ+FCA==} - - '@changesets/get-github-info@0.5.2': - resolution: {integrity: sha512-JppheLu7S114aEs157fOZDjFqUDpm7eHdq5E8SSR0gUBTEK0cNSHsrSR5a66xs0z3RWuo46QvA3vawp8BxDHvg==} - - '@changesets/get-release-plan@4.0.3': - resolution: {integrity: sha512-6PLgvOIwTSdJPTtpdcr3sLtGatT+Jr22+cQwEBJBy6wP0rjB4yJ9lv583J9fVpn1bfQlBkDa8JxbS2g/n9lIyA==} - - '@changesets/get-version-range-type@0.4.0': - resolution: {integrity: sha512-hwawtob9DryoGTpixy1D3ZXbGgJu1Rhr+ySH2PvTLHvkZuQ7sRT4oQwMh0hbqZH1weAooedEjRsbrWcGLCeyVQ==} - - '@changesets/git@3.0.0': - resolution: {integrity: sha512-vvhnZDHe2eiBNRFHEgMiGd2CT+164dfYyrJDhwwxTVD/OW0FUD6G7+4DIx1dNwkwjHyzisxGAU96q0sVNBns0w==} - - '@changesets/logger@0.1.0': - resolution: {integrity: sha512-pBrJm4CQm9VqFVwWnSqKEfsS2ESnwqwH+xR7jETxIErZcfd1u2zBSqrHbRHR7xjhSgep9x2PSKFKY//FAshA3g==} - - '@changesets/parse@0.4.0': - resolution: {integrity: sha512-TS/9KG2CdGXS27S+QxbZXgr8uPsP4yNJYb4BC2/NeFUj80Rni3TeD2qwWmabymxmrLo7JEsytXH1FbpKTbvivw==} - - '@changesets/pre@2.0.0': - resolution: {integrity: sha512-HLTNYX/A4jZxc+Sq8D1AMBsv+1qD6rmmJtjsCJa/9MSRybdxh0mjbTvE6JYZQ/ZiQ0mMlDOlGPXTm9KLTU3jyw==} - - '@changesets/read@0.6.0': - resolution: {integrity: sha512-ZypqX8+/im1Fm98K4YcZtmLKgjs1kDQ5zHpc2U1qdtNBmZZfo/IBiG162RoP0CUF05tvp2y4IspH11PLnPxuuw==} - - '@changesets/should-skip-package@0.1.0': - resolution: {integrity: sha512-FxG6Mhjw7yFStlSM7Z0Gmg3RiyQ98d/9VpQAZ3Fzr59dCOM9G6ZdYbjiSAt0XtFr9JR5U2tBaJWPjrkGGc618g==} - - '@changesets/types@4.1.0': - resolution: {integrity: sha512-LDQvVDv5Kb50ny2s25Fhm3d9QSZimsoUGBsUioj6MC3qbMUCuC8GPIvk/M6IvXx3lYhAs0lwWUQLb+VIEUCECw==} - - '@changesets/types@5.2.1': - resolution: {integrity: sha512-myLfHbVOqaq9UtUKqR/nZA/OY7xFjQMdfgfqeZIBK4d0hA6pgxArvdv8M+6NUzzBsjWLOtvApv8YHr4qM+Kpfg==} - - '@changesets/types@6.0.0': - resolution: {integrity: sha512-b1UkfNulgKoWfqyHtzKS5fOZYSJO+77adgL7DLRDr+/7jhChN+QcHnbjiQVOz/U+Ts3PGNySq7diAItzDgugfQ==} - - '@changesets/write@0.3.1': - resolution: {integrity: sha512-SyGtMXzH3qFqlHKcvFY2eX+6b0NGiFcNav8AFsYwy5l8hejOeoeTDemu5Yjmke2V5jpzY+pBvM0vCCQ3gdZpfw==} - - '@livekit/changesets-changelog-github@0.0.4': - resolution: {integrity: sha512-MXaiLYwgkYciZb8G2wkVtZ1pJJzZmVx5cM30Q+ClslrIYyAqQhRbPmZDM79/5CGxb1MTemR/tfOM25tgJgAK0g==} - - '@manypkg/find-root@1.1.0': - resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} - - '@manypkg/get-packages@1.1.3': - resolution: {integrity: sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==} - - '@nodelib/fs.scandir@2.1.5': - resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} - engines: {node: '>= 8'} - - '@nodelib/fs.stat@2.0.5': - resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} - engines: {node: '>= 8'} - - '@nodelib/fs.walk@1.2.8': - resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} - engines: {node: '>= 8'} - - '@types/node@12.20.55': - resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - - '@types/semver@7.5.8': - resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} - - ansi-colors@4.1.3: - resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} - engines: {node: '>=6'} - - ansi-regex@5.0.1: - resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} - engines: {node: '>=8'} - - ansi-styles@3.2.1: - resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} - engines: {node: '>=4'} - - argparse@1.0.10: - resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} - - array-union@2.1.0: - resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} - engines: {node: '>=8'} - - better-path-resolve@1.0.0: - resolution: {integrity: sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==} - engines: {node: '>=4'} - - braces@3.0.3: - resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} - engines: {node: '>=8'} - - chalk@2.4.2: - resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} - engines: {node: '>=4'} - - chardet@0.7.0: - resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} - - ci-info@3.9.0: - resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} - engines: {node: '>=8'} - - color-convert@1.9.3: - resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} - - color-name@1.1.3: - resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} - - cross-spawn@5.1.0: - resolution: {integrity: sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==} - - dataloader@1.4.0: - resolution: {integrity: sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==} - - detect-indent@6.1.0: - resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==} - engines: {node: '>=8'} - - dir-glob@3.0.1: - resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} - engines: {node: '>=8'} - - dotenv@8.6.0: - resolution: {integrity: sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==} - engines: {node: '>=10'} - - enquirer@2.4.1: - resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} - engines: {node: '>=8.6'} - - escape-string-regexp@1.0.5: - resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} - engines: {node: '>=0.8.0'} - - esprima@4.0.1: - resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} - engines: {node: '>=4'} - hasBin: true - - extendable-error@0.1.7: - resolution: {integrity: sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg==} - - external-editor@3.1.0: - resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==} - engines: {node: '>=4'} - - fast-glob@3.3.2: - resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} - engines: {node: '>=8.6.0'} - - fastq@1.17.1: - resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} - - fill-range@7.1.1: - resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} - engines: {node: '>=8'} - - find-up@4.1.0: - resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} - engines: {node: '>=8'} - - find-up@5.0.0: - resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} - engines: {node: '>=10'} - - find-yarn-workspace-root2@1.2.16: - resolution: {integrity: sha512-hr6hb1w8ePMpPVUK39S4RlwJzi+xPLuVuG8XlwXU3KD5Yn3qgBWVfy3AzNlDhWvE1EORCE65/Qm26rFQt3VLVA==} - - fs-extra@7.0.1: - resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==} - engines: {node: '>=6 <7 || >=8'} - - fs-extra@8.1.0: - resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==} - engines: {node: '>=6 <7 || >=8'} - - glob-parent@5.1.2: - resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} - engines: {node: '>= 6'} - - globby@11.1.0: - resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} - engines: {node: '>=10'} - - graceful-fs@4.2.11: - resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - - has-flag@3.0.0: - resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} - engines: {node: '>=4'} - - human-id@1.0.2: - resolution: {integrity: sha512-UNopramDEhHJD+VR+ehk8rOslwSfByxPIZyJRfV739NDhN5LF1fa1MqnzKm2lGTQRjNrjK19Q5fhkgIfjlVUKw==} - - iconv-lite@0.4.24: - resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} - engines: {node: '>=0.10.0'} - - ignore@5.3.2: - resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} - engines: {node: '>= 4'} - - is-extglob@2.1.1: - resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} - engines: {node: '>=0.10.0'} - - is-glob@4.0.3: - resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} - engines: {node: '>=0.10.0'} - - is-number@7.0.0: - resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} - engines: {node: '>=0.12.0'} - - is-subdir@1.2.0: - resolution: {integrity: sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==} - engines: {node: '>=4'} - - is-windows@1.0.2: - resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==} - engines: {node: '>=0.10.0'} - - isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - - js-yaml@3.14.1: - resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} - hasBin: true - - jsonfile@4.0.0: - resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} - - load-yaml-file@0.2.0: - resolution: {integrity: sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw==} - engines: {node: '>=6'} - - locate-path@5.0.0: - resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} - engines: {node: '>=8'} - - locate-path@6.0.0: - resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} - engines: {node: '>=10'} - - lodash.startcase@4.4.0: - resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==} - - lru-cache@4.1.5: - resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==} - - merge2@1.4.1: - resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} - engines: {node: '>= 8'} - - micromatch@4.0.7: - resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} - engines: {node: '>=8.6'} - - mri@1.2.0: - resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} - engines: {node: '>=4'} - - node-fetch@2.7.0: - resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} - engines: {node: 4.x || >=6.0.0} - peerDependencies: - encoding: ^0.1.0 - peerDependenciesMeta: - encoding: - optional: true - - os-tmpdir@1.0.2: - resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==} - engines: {node: '>=0.10.0'} - - outdent@0.5.0: - resolution: {integrity: sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q==} - - p-filter@2.1.0: - resolution: {integrity: sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==} - engines: {node: '>=8'} - - p-limit@2.3.0: - resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} - engines: {node: '>=6'} - - p-limit@3.1.0: - resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} - engines: {node: '>=10'} - - p-locate@4.1.0: - resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} - engines: {node: '>=8'} - - p-locate@5.0.0: - resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} - engines: {node: '>=10'} - - p-map@2.1.0: - resolution: {integrity: sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==} - engines: {node: '>=6'} - - p-try@2.2.0: - resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} - engines: {node: '>=6'} - - path-exists@4.0.0: - resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} - engines: {node: '>=8'} - - path-type@4.0.0: - resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} - engines: {node: '>=8'} - - picomatch@2.3.1: - resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} - engines: {node: '>=8.6'} - - pify@4.0.1: - resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} - engines: {node: '>=6'} - - pkg-dir@4.2.0: - resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} - engines: {node: '>=8'} - - preferred-pm@3.1.4: - resolution: {integrity: sha512-lEHd+yEm22jXdCphDrkvIJQU66EuLojPPtvZkpKIkiD+l0DMThF/niqZKJSoU8Vl7iuvtmzyMhir9LdVy5WMnA==} - engines: {node: '>=10'} - - prettier@2.8.8: - resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} - engines: {node: '>=10.13.0'} - hasBin: true - - pseudomap@1.0.2: - resolution: {integrity: sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==} - - queue-microtask@1.2.3: - resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - - read-yaml-file@1.1.0: - resolution: {integrity: sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA==} - engines: {node: '>=6'} - - regenerator-runtime@0.14.1: - resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} - - resolve-from@5.0.0: - resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} - engines: {node: '>=8'} - - reusify@1.0.4: - resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} - engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - - run-parallel@1.2.0: - resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} - - safer-buffer@2.1.2: - resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} - - semver@7.6.3: - resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} - engines: {node: '>=10'} - hasBin: true - - shebang-command@1.2.0: - resolution: {integrity: sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==} - engines: {node: '>=0.10.0'} - - shebang-regex@1.0.0: - resolution: {integrity: sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==} - engines: {node: '>=0.10.0'} - - signal-exit@3.0.7: - resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} - - slash@3.0.0: - resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} - engines: {node: '>=8'} - - spawndamnit@2.0.0: - resolution: {integrity: sha512-j4JKEcncSjFlqIwU5L/rp2N5SIPsdxaRsIv678+TZxZ0SRDJTm8JrxJMjE/XuiEZNEir3S8l0Fa3Ke339WI4qA==} - - sprintf-js@1.0.3: - resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - - strip-ansi@6.0.1: - resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} - engines: {node: '>=8'} - - strip-bom@3.0.0: - resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} - engines: {node: '>=4'} - - supports-color@5.5.0: - resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} - engines: {node: '>=4'} - - term-size@2.2.1: - resolution: {integrity: sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==} - engines: {node: '>=8'} - - tmp@0.0.33: - resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} - engines: {node: '>=0.6.0'} - - to-regex-range@5.0.1: - resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} - engines: {node: '>=8.0'} - - tr46@0.0.3: - resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - - universalify@0.1.2: - resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} - engines: {node: '>= 4.0.0'} - - webidl-conversions@3.0.1: - resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} - - whatwg-url@5.0.0: - resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} - - which-pm@2.2.0: - resolution: {integrity: sha512-MOiaDbA5ZZgUjkeMWM5EkJp4loW5ZRoa5bc3/aeMox/PJelMhE6t7S/mLuiY43DBupyxH+S0U1bTui9kWUlmsw==} - engines: {node: '>=8.15'} - - which@1.3.1: - resolution: {integrity: sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==} - hasBin: true - - yallist@2.1.2: - resolution: {integrity: sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==} - - yocto-queue@0.1.0: - resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} - engines: {node: '>=10'} - -snapshots: - - '@babel/runtime@7.25.0': - dependencies: - regenerator-runtime: 0.14.1 - - '@changesets/apply-release-plan@7.0.4': - dependencies: - '@babel/runtime': 7.25.0 - '@changesets/config': 3.0.2 - '@changesets/get-version-range-type': 0.4.0 - '@changesets/git': 3.0.0 - '@changesets/should-skip-package': 0.1.0 - '@changesets/types': 6.0.0 - '@manypkg/get-packages': 1.1.3 - detect-indent: 6.1.0 - fs-extra: 7.0.1 - lodash.startcase: 4.4.0 - outdent: 0.5.0 - prettier: 2.8.8 - resolve-from: 5.0.0 - semver: 7.6.3 - - '@changesets/assemble-release-plan@6.0.3': - dependencies: - '@babel/runtime': 7.25.0 - '@changesets/errors': 0.2.0 - '@changesets/get-dependents-graph': 2.1.1 - '@changesets/should-skip-package': 0.1.0 - '@changesets/types': 6.0.0 - '@manypkg/get-packages': 1.1.3 - semver: 7.6.3 - - '@changesets/changelog-git@0.2.0': - dependencies: - '@changesets/types': 6.0.0 - - '@changesets/cli@2.27.7': - dependencies: - '@babel/runtime': 7.25.0 - '@changesets/apply-release-plan': 7.0.4 - '@changesets/assemble-release-plan': 6.0.3 - '@changesets/changelog-git': 0.2.0 - '@changesets/config': 3.0.2 - '@changesets/errors': 0.2.0 - '@changesets/get-dependents-graph': 2.1.1 - '@changesets/get-release-plan': 4.0.3 - '@changesets/git': 3.0.0 - '@changesets/logger': 0.1.0 - '@changesets/pre': 2.0.0 - '@changesets/read': 0.6.0 - '@changesets/should-skip-package': 0.1.0 - '@changesets/types': 6.0.0 - '@changesets/write': 0.3.1 - '@manypkg/get-packages': 1.1.3 - '@types/semver': 7.5.8 - ansi-colors: 4.1.3 - chalk: 2.4.2 - ci-info: 3.9.0 - enquirer: 2.4.1 - external-editor: 3.1.0 - fs-extra: 7.0.1 - human-id: 1.0.2 - mri: 1.2.0 - outdent: 0.5.0 - p-limit: 2.3.0 - preferred-pm: 3.1.4 - resolve-from: 5.0.0 - semver: 7.6.3 - spawndamnit: 2.0.0 - term-size: 2.2.1 - - '@changesets/config@3.0.2': - dependencies: - '@changesets/errors': 0.2.0 - '@changesets/get-dependents-graph': 2.1.1 - '@changesets/logger': 0.1.0 - '@changesets/types': 6.0.0 - '@manypkg/get-packages': 1.1.3 - fs-extra: 7.0.1 - micromatch: 4.0.7 - - '@changesets/errors@0.2.0': - dependencies: - extendable-error: 0.1.7 - - '@changesets/get-dependents-graph@2.1.1': - dependencies: - '@changesets/types': 6.0.0 - '@manypkg/get-packages': 1.1.3 - chalk: 2.4.2 - fs-extra: 7.0.1 - semver: 7.6.3 - - '@changesets/get-github-info@0.5.2': - dependencies: - dataloader: 1.4.0 - node-fetch: 2.7.0 - transitivePeerDependencies: - - encoding - - '@changesets/get-release-plan@4.0.3': - dependencies: - '@babel/runtime': 7.25.0 - '@changesets/assemble-release-plan': 6.0.3 - '@changesets/config': 3.0.2 - '@changesets/pre': 2.0.0 - '@changesets/read': 0.6.0 - '@changesets/types': 6.0.0 - '@manypkg/get-packages': 1.1.3 - - '@changesets/get-version-range-type@0.4.0': {} - - '@changesets/git@3.0.0': - dependencies: - '@babel/runtime': 7.25.0 - '@changesets/errors': 0.2.0 - '@changesets/types': 6.0.0 - '@manypkg/get-packages': 1.1.3 - is-subdir: 1.2.0 - micromatch: 4.0.7 - spawndamnit: 2.0.0 - - '@changesets/logger@0.1.0': - dependencies: - chalk: 2.4.2 - - '@changesets/parse@0.4.0': - dependencies: - '@changesets/types': 6.0.0 - js-yaml: 3.14.1 - - '@changesets/pre@2.0.0': - dependencies: - '@babel/runtime': 7.25.0 - '@changesets/errors': 0.2.0 - '@changesets/types': 6.0.0 - '@manypkg/get-packages': 1.1.3 - fs-extra: 7.0.1 - - '@changesets/read@0.6.0': - dependencies: - '@babel/runtime': 7.25.0 - '@changesets/git': 3.0.0 - '@changesets/logger': 0.1.0 - '@changesets/parse': 0.4.0 - '@changesets/types': 6.0.0 - chalk: 2.4.2 - fs-extra: 7.0.1 - p-filter: 2.1.0 - - '@changesets/should-skip-package@0.1.0': - dependencies: - '@babel/runtime': 7.25.0 - '@changesets/types': 6.0.0 - '@manypkg/get-packages': 1.1.3 - - '@changesets/types@4.1.0': {} - - '@changesets/types@5.2.1': {} - - '@changesets/types@6.0.0': {} - - '@changesets/write@0.3.1': - dependencies: - '@babel/runtime': 7.25.0 - '@changesets/types': 6.0.0 - fs-extra: 7.0.1 - human-id: 1.0.2 - prettier: 2.8.8 - - '@livekit/changesets-changelog-github@0.0.4': - dependencies: - '@changesets/get-github-info': 0.5.2 - '@changesets/types': 5.2.1 - dotenv: 8.6.0 - transitivePeerDependencies: - - encoding - - '@manypkg/find-root@1.1.0': - dependencies: - '@babel/runtime': 7.25.0 - '@types/node': 12.20.55 - find-up: 4.1.0 - fs-extra: 8.1.0 - - '@manypkg/get-packages@1.1.3': - dependencies: - '@babel/runtime': 7.25.0 - '@changesets/types': 4.1.0 - '@manypkg/find-root': 1.1.0 - fs-extra: 8.1.0 - globby: 11.1.0 - read-yaml-file: 1.1.0 - - '@nodelib/fs.scandir@2.1.5': - dependencies: - '@nodelib/fs.stat': 2.0.5 - run-parallel: 1.2.0 - - '@nodelib/fs.stat@2.0.5': {} - - '@nodelib/fs.walk@1.2.8': - dependencies: - '@nodelib/fs.scandir': 2.1.5 - fastq: 1.17.1 - - '@types/node@12.20.55': {} - - '@types/semver@7.5.8': {} - - ansi-colors@4.1.3: {} - - ansi-regex@5.0.1: {} - - ansi-styles@3.2.1: - dependencies: - color-convert: 1.9.3 - - argparse@1.0.10: - dependencies: - sprintf-js: 1.0.3 - - array-union@2.1.0: {} - - better-path-resolve@1.0.0: - dependencies: - is-windows: 1.0.2 - - braces@3.0.3: - dependencies: - fill-range: 7.1.1 - - chalk@2.4.2: - dependencies: - ansi-styles: 3.2.1 - escape-string-regexp: 1.0.5 - supports-color: 5.5.0 - - chardet@0.7.0: {} - - ci-info@3.9.0: {} - - color-convert@1.9.3: - dependencies: - color-name: 1.1.3 - - color-name@1.1.3: {} - - cross-spawn@5.1.0: - dependencies: - lru-cache: 4.1.5 - shebang-command: 1.2.0 - which: 1.3.1 - - dataloader@1.4.0: {} - - detect-indent@6.1.0: {} - - dir-glob@3.0.1: - dependencies: - path-type: 4.0.0 - - dotenv@8.6.0: {} - - enquirer@2.4.1: - dependencies: - ansi-colors: 4.1.3 - strip-ansi: 6.0.1 - - escape-string-regexp@1.0.5: {} - - esprima@4.0.1: {} - - extendable-error@0.1.7: {} - - external-editor@3.1.0: - dependencies: - chardet: 0.7.0 - iconv-lite: 0.4.24 - tmp: 0.0.33 - - fast-glob@3.3.2: - dependencies: - '@nodelib/fs.stat': 2.0.5 - '@nodelib/fs.walk': 1.2.8 - glob-parent: 5.1.2 - merge2: 1.4.1 - micromatch: 4.0.7 - - fastq@1.17.1: - dependencies: - reusify: 1.0.4 - - fill-range@7.1.1: - dependencies: - to-regex-range: 5.0.1 - - find-up@4.1.0: - dependencies: - locate-path: 5.0.0 - path-exists: 4.0.0 - - find-up@5.0.0: - dependencies: - locate-path: 6.0.0 - path-exists: 4.0.0 - - find-yarn-workspace-root2@1.2.16: - dependencies: - micromatch: 4.0.7 - pkg-dir: 4.2.0 - - fs-extra@7.0.1: - dependencies: - graceful-fs: 4.2.11 - jsonfile: 4.0.0 - universalify: 0.1.2 - - fs-extra@8.1.0: - dependencies: - graceful-fs: 4.2.11 - jsonfile: 4.0.0 - universalify: 0.1.2 - - glob-parent@5.1.2: - dependencies: - is-glob: 4.0.3 - - globby@11.1.0: - dependencies: - array-union: 2.1.0 - dir-glob: 3.0.1 - fast-glob: 3.3.2 - ignore: 5.3.2 - merge2: 1.4.1 - slash: 3.0.0 - - graceful-fs@4.2.11: {} - - has-flag@3.0.0: {} - - human-id@1.0.2: {} - - iconv-lite@0.4.24: - dependencies: - safer-buffer: 2.1.2 - - ignore@5.3.2: {} - - is-extglob@2.1.1: {} - - is-glob@4.0.3: - dependencies: - is-extglob: 2.1.1 - - is-number@7.0.0: {} - - is-subdir@1.2.0: - dependencies: - better-path-resolve: 1.0.0 - - is-windows@1.0.2: {} - - isexe@2.0.0: {} - - js-yaml@3.14.1: - dependencies: - argparse: 1.0.10 - esprima: 4.0.1 - - jsonfile@4.0.0: - optionalDependencies: - graceful-fs: 4.2.11 - - load-yaml-file@0.2.0: - dependencies: - graceful-fs: 4.2.11 - js-yaml: 3.14.1 - pify: 4.0.1 - strip-bom: 3.0.0 - - locate-path@5.0.0: - dependencies: - p-locate: 4.1.0 - - locate-path@6.0.0: - dependencies: - p-locate: 5.0.0 - - lodash.startcase@4.4.0: {} - - lru-cache@4.1.5: - dependencies: - pseudomap: 1.0.2 - yallist: 2.1.2 - - merge2@1.4.1: {} - - micromatch@4.0.7: - dependencies: - braces: 3.0.3 - picomatch: 2.3.1 - - mri@1.2.0: {} - - node-fetch@2.7.0: - dependencies: - whatwg-url: 5.0.0 - - os-tmpdir@1.0.2: {} - - outdent@0.5.0: {} - - p-filter@2.1.0: - dependencies: - p-map: 2.1.0 - - p-limit@2.3.0: - dependencies: - p-try: 2.2.0 - - p-limit@3.1.0: - dependencies: - yocto-queue: 0.1.0 - - p-locate@4.1.0: - dependencies: - p-limit: 2.3.0 - - p-locate@5.0.0: - dependencies: - p-limit: 3.1.0 - - p-map@2.1.0: {} - - p-try@2.2.0: {} - - path-exists@4.0.0: {} - - path-type@4.0.0: {} - - picomatch@2.3.1: {} - - pify@4.0.1: {} - - pkg-dir@4.2.0: - dependencies: - find-up: 4.1.0 - - preferred-pm@3.1.4: - dependencies: - find-up: 5.0.0 - find-yarn-workspace-root2: 1.2.16 - path-exists: 4.0.0 - which-pm: 2.2.0 - - prettier@2.8.8: {} - - pseudomap@1.0.2: {} - - queue-microtask@1.2.3: {} - - read-yaml-file@1.1.0: - dependencies: - graceful-fs: 4.2.11 - js-yaml: 3.14.1 - pify: 4.0.1 - strip-bom: 3.0.0 - - regenerator-runtime@0.14.1: {} - - resolve-from@5.0.0: {} - - reusify@1.0.4: {} - - run-parallel@1.2.0: - dependencies: - queue-microtask: 1.2.3 - - safer-buffer@2.1.2: {} - - semver@7.6.3: {} - - shebang-command@1.2.0: - dependencies: - shebang-regex: 1.0.0 - - shebang-regex@1.0.0: {} - - signal-exit@3.0.7: {} - - slash@3.0.0: {} - - spawndamnit@2.0.0: - dependencies: - cross-spawn: 5.1.0 - signal-exit: 3.0.7 - - sprintf-js@1.0.3: {} - - strip-ansi@6.0.1: - dependencies: - ansi-regex: 5.0.1 - - strip-bom@3.0.0: {} - - supports-color@5.5.0: - dependencies: - has-flag: 3.0.0 - - term-size@2.2.1: {} - - tmp@0.0.33: - dependencies: - os-tmpdir: 1.0.2 - - to-regex-range@5.0.1: - dependencies: - is-number: 7.0.0 - - tr46@0.0.3: {} - - universalify@0.1.2: {} - - webidl-conversions@3.0.1: {} - - whatwg-url@5.0.0: - dependencies: - tr46: 0.0.3 - webidl-conversions: 3.0.1 - - which-pm@2.2.0: - dependencies: - load-yaml-file: 0.2.0 - path-exists: 4.0.0 - - which@1.3.1: - dependencies: - isexe: 2.0.0 - - yallist@2.1.2: {} - - yocto-queue@0.1.0: {} diff --git a/release-instructions.md b/release-instructions.md deleted file mode 100644 index b16995c0a..000000000 --- a/release-instructions.md +++ /dev/null @@ -1,10 +0,0 @@ -# Releasing - -1. In the top-level gradle.properties file, update the `VERSION_NAME` property. This will usually just be removing the `-SNAPSHOT` suffix. -1. Commit and push changes. -1. Tag the release: `git tag v[VERSION_NAME]`. Make sure there is a `v` prefix at the front of the tag. This indicates to the CI that this is a release tag. -1. Push tags: `git push --tags` -1. Confirm that the `publish` github action is completed successfully. -1. Add a new GitHub release with change logs. -1. Prepare the version for the next release by bumping the `VERSION_NAME` property and adding the `-SNAPSHOT` suffix. -1. Additionally update the version names in README.md. diff --git a/verwalter.toml b/verwalter.toml new file mode 100644 index 000000000..6d95962c0 --- /dev/null +++ b/verwalter.toml @@ -0,0 +1,13 @@ +#:schema https://raw.githubusercontent.com/livekit/verwalter/main/schemas/v1.json + +# One version for every published artifact (livekit-android, -camerax, +# -track-processors, -test). The name matches the existing changesets. +[packages.client-sdk-android] +path = "." +versioning.files = [ + { path = "gradle.properties", regex = "VERSION_NAME=(?.+)" }, + { path = "README.md", regex = 'def livekit_version = "(?[^"]+)"' }, +] +publish.registry = "custom" +publish.exists_url = "https://repo1.maven.org/maven2/io/livekit/livekit-android/{version}/livekit-android-{version}.pom" +publish.command = "./gradlew --no-configuration-cache publishReleasePublicationToMavenRepository closeAndReleaseMavenStagingRepository -Dorg.gradle.parallel=false" From 287897d9d6b5948fe73b0bd61b2ce73153805a48 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Mon, 23 Nov 2026 11:04:26 +0100 Subject: [PATCH 2/4] Build and test before the release job tags A failed build or test now stops the run before a tag or GitHub release exists. Before, the tag came first, and a failed test left a tag that needed an abandon and a new version. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 43 +++++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d827a23f2..a4d100c77 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,6 @@ -# After a release PR merges: tag and create the GitHub release, then build -# and publish to Maven Central. The step that cannot be undone comes last. +# After a release PR merges: build and test, then tag and create the GitHub +# release, then publish to Maven Central. The step that cannot be undone +# comes last. # Docs upload and the components-android dispatch run after the publish. name: Release @@ -21,11 +22,38 @@ permissions: contents: write jobs: - release: + # A failed build or test stops here, before a tag exists. + build: # Only a release PR the tool opened: the branch prefix alone would let # any pushed `release/*` branch trigger a publish. if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/') && github.event.pull_request.user.login == 'verwalter-release[bot]' && contains(github.event.pull_request.body, '')) runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.event.pull_request.merge_commit_sha || inputs.ref || github.sha }} + submodules: recursive + + - name: Set up JDK 17 + uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + with: + java-version: '17' + distribution: 'adopt' + + - name: Fetch livekit-ffi host library + id: uniffi + run: | + lib_dir=$(./ci/fetch_uniffi_cdylib.sh) + echo "lib_dir=$lib_dir" >> "$GITHUB_OUTPUT" + + - name: Build and test + run: ./gradlew livekit-android-sdk:assembleRelease livekit-android-camerax:assembleRelease livekit-android-test:testRelease "-PlivekitUniffiLibDir=${{ steps.uniffi.outputs.lib_dir }}" + + release: + needs: build + runs-on: ubuntu-latest outputs: released: ${{ steps.verwalter.outputs.released }} releases: ${{ steps.verwalter.outputs.releases }} @@ -60,15 +88,6 @@ jobs: java-version: '17' distribution: 'adopt' - - name: Fetch livekit-ffi host library - id: uniffi - run: | - lib_dir=$(./ci/fetch_uniffi_cdylib.sh) - echo "lib_dir=$lib_dir" >> "$GITHUB_OUTPUT" - - - name: Build and test - run: ./gradlew livekit-android-sdk:assembleRelease livekit-android-camerax:assembleRelease livekit-android-test:testRelease "-PlivekitUniffiLibDir=${{ steps.uniffi.outputs.lib_dir }}" - - name: Write signing and Sonatype credentials run: | echo $GPG_KEY_ARMOR | base64 --decode > ./release.asc From cd53dfd8ac3811c81d52d1e04d5200ebed7ab8e2 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Mon, 23 Nov 2026 11:13:49 +0100 Subject: [PATCH 3/4] Harden the release workflow - verify waits until Maven Central has the version, then runs verwalter status --check, so a skipped or silent failure ends red. - Docs upload and the components-android dispatch move to a notify job after verify. They read the version and the prerelease flag from the releases output, and run only for a final release on main. - The publish job has a concurrency group, so two runs never upload to Sonatype at the same time. - The pull_request trigger has no branches filter. The condition on the build job decides which PRs release. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 95 +++++++++++++++++++++++++++++------ RELEASING.md | 2 +- 2 files changed, 81 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4d100c77..62025614d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,13 @@ # After a release PR merges: build and test, then tag and create the GitHub # release, then publish to Maven Central. The step that cannot be undone # comes last. -# Docs upload and the components-android dispatch run after the publish. +# `verify` waits until Maven Central has the version, then asserts the +# end state. Docs and the components-android dispatch run after that. name: Release on: pull_request: types: [closed] - branches: [main] # Re-run by hand after a fix: `verwalter release` resumes from the # current state and skips what is done. `publish` skips a version that # Maven Central already has. @@ -73,6 +73,10 @@ jobs: needs: release if: needs.release.outputs.released == 'true' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest + # One upload to Sonatype at a time: a second run waits for the first. + concurrency: + group: maven-central-publish + cancel-in-progress: false permissions: contents: write # the tool makes the draft release public after the publish steps: @@ -115,25 +119,86 @@ jobs: command: publish releases: ${{ needs.release.outputs.releases }} - - name: Get version - id: version - run: echo "version=$(sed -n 's/^VERSION_NAME=//p' gradle.properties)" >> "$GITHUB_OUTPUT" - - # The docs site holds one version: an rc must not replace the last final release. - - name: Build and upload docs - if: ${{ !contains(steps.version.outputs.version, '-') }} + # Asserts the end state. Maven Central shows a new version up to about + # 30 minutes after Sonatype accepts it, so the job waits for it first. + verify: + needs: [release, publish] + runs-on: ubuntu-latest + permissions: + contents: write # reads only. A draft release is visible only with write access + steps: + - name: Wait for Maven Central + timeout-minutes: 90 + env: + RELEASES: ${{ needs.release.outputs.releases }} run: | - ./gradlew dokkaHtml - aws s3 cp ./livekit-android-sdk/build/dokka/html/ s3://livekit-docs/client-sdk-android/ --recursive + version=$(echo "${RELEASES:-[]}" | jq -r '.[] | select(.package == "client-sdk-android") | .version') + if [ -z "$version" ]; then + echo "This run released nothing new. status --check covers the last release." + exit 0 + fi + url="https://repo1.maven.org/maven2/io/livekit/livekit-android/$version/livekit-android-$version.pom" + until curl -fsSI -o /dev/null "$url"; do + echo "Waiting for $url" + sleep 60 + done + + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.event.pull_request.merge_commit_sha || inputs.ref || github.sha }} + fetch-depth: 0 + + - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + with: + command: status + args: --check + + # Runs after the release is complete. A failure here is red, but the + # release jobs above stay green. + notify: + needs: [release, verify] + if: contains(fromJson(needs.release.outputs.releases || '[]').*.package, 'client-sdk-android') + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Read the release + id: release env: - AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }} - AWS_DEFAULT_REGION: "us-east-1" + RELEASES: ${{ needs.release.outputs.releases }} + run: | + echo "$RELEASES" | jq -r '.[] | select(.package == "client-sdk-android") | "version=\(.version)\nprerelease=\(.prerelease)"' >> "$GITHUB_OUTPUT" + # Only a final release on main: the docs site holds one version, and + # components-android follows the main line. - name: Dispatch to components-android + if: steps.release.outputs.prerelease == 'false' && (github.event.pull_request.base.ref || github.ref_name) == 'main' uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 with: token: ${{ secrets.E2E_DISPATCH_TOKEN }} repository: livekit/components-android event-type: update-livekit-version - client-payload: '{"version": "${{ steps.version.outputs.version }}"}' + client-payload: '{"version": "${{ steps.release.outputs.version }}"}' + + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + if: steps.release.outputs.prerelease == 'false' && (github.event.pull_request.base.ref || github.ref_name) == 'main' + with: + ref: ${{ github.event.pull_request.merge_commit_sha || inputs.ref || github.sha }} + submodules: recursive + + - name: Set up JDK 17 + if: steps.release.outputs.prerelease == 'false' && (github.event.pull_request.base.ref || github.ref_name) == 'main' + uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + with: + java-version: '17' + distribution: 'adopt' + + - name: Build and upload docs + if: steps.release.outputs.prerelease == 'false' && (github.event.pull_request.base.ref || github.ref_name) == 'main' + run: | + ./gradlew dokkaHtml + aws s3 cp ./livekit-android-sdk/build/dokka/html/ s3://livekit-docs/client-sdk-android/ --recursive + env: + AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }} + AWS_DEFAULT_REGION: "us-east-1" diff --git a/RELEASING.md b/RELEASING.md index 079d77e62..c91b9649b 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -20,7 +20,7 @@ Do not change it by hand. The release PR changes it. |---|---|---| | `changeset-check.yml` | A PR is opened or updated | Fails a PR without a changeset. The `internal` label skips the check. | | `release-pr.yml` | A push to `main` | Keeps the release PR `release/main` current. | -| `release.yml` | The release PR merges | Tags, creates the GitHub release, publishes to Maven Central, uploads the docs, notifies `livekit/components-android`. | +| `release.yml` | The release PR merges | Builds and tests, tags, creates the GitHub release and publishes to Maven Central. The `verify` job waits until Maven Central has the version. Then `notify` uploads the docs and notifies `livekit/components-android`. | | `android.yml` | A push to `main` | Publishes `-SNAPSHOT` to the Sonatype snapshot repository. | ## Release From fe70e6d26817fe63e85a2759932530e05a9cbcd1 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Mon, 23 Nov 2026 12:30:40 +0100 Subject: [PATCH 4/4] Adopt verwalter 0.32.0-rc.1 Pin the action to v0.32.0-rc.1. The release workflow uses the new `gate` job in place of the long `if:` condition, and `verify` uses `status --check --wait 90m` in place of the curl loop on Maven Central. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/changeset-check.yml | 2 +- .github/workflows/release-pr.yml | 2 +- .github/workflows/release.yml | 52 ++++++++++++++------------- 3 files changed, 29 insertions(+), 27 deletions(-) diff --git a/.github/workflows/changeset-check.yml b/.github/workflows/changeset-check.yml index c67c93803..648f94dfa 100644 --- a/.github/workflows/changeset-check.yml +++ b/.github/workflows/changeset-check.yml @@ -16,6 +16,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + - uses: livekit/verwalter@9da894a1e4f7d298095a961be60c818afd47905b # v0.32.0-rc.1 with: command: check diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 855f2f421..9959f4b1d 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 # the commit that added a changeset gives its changelog line the PR and author - - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + - uses: livekit/verwalter@9da894a1e4f7d298095a961be60c818afd47905b # v0.32.0-rc.1 with: command: pr # The App token lets the release PR trigger CI; github.token does not. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62025614d..99a977877 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,11 +22,29 @@ permissions: contents: write jobs: + # Only a run by hand, or a merged release PR that the tool opened: the + # branch name alone would let any pushed `release/*` branch trigger a + # publish. The author is `[release].author`, default + # `verwalter-release[bot]`. + gate: + runs-on: ubuntu-latest + permissions: + contents: read + outputs: + release: ${{ steps.verwalter.outputs.release }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.event.pull_request.merge_commit_sha || inputs.ref || github.sha }} + - id: verwalter + uses: livekit/verwalter@9da894a1e4f7d298095a961be60c818afd47905b # v0.32.0-rc.1 + with: + command: gate + # A failed build or test stops here, before a tag exists. build: - # Only a release PR the tool opened: the branch prefix alone would let - # any pushed `release/*` branch trigger a publish. - if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/') && github.event.pull_request.user.login == 'verwalter-release[bot]' && contains(github.event.pull_request.body, '')) + needs: gate + if: needs.gate.outputs.release == 'true' runs-on: ubuntu-latest permissions: contents: read @@ -65,7 +83,7 @@ jobs: ref: ${{ github.event.pull_request.merge_commit_sha || inputs.ref || github.sha }} fetch-depth: 0 - id: verwalter - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + uses: livekit/verwalter@9da894a1e4f7d298095a961be60c818afd47905b # v0.32.0-rc.1 with: command: release @@ -112,7 +130,7 @@ jobs: # Runs publish.command from verwalter.toml, skipped when Maven Central # already has the version. - - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + - uses: livekit/verwalter@9da894a1e4f7d298095a961be60c818afd47905b # v0.32.0-rc.1 env: GH_TOKEN: ${{ github.token }} with: @@ -120,38 +138,22 @@ jobs: releases: ${{ needs.release.outputs.releases }} # Asserts the end state. Maven Central shows a new version up to about - # 30 minutes after Sonatype accepts it, so the job waits for it first. + # 30 minutes after Sonatype accepts it, so the check asks again until then. verify: - needs: [release, publish] + needs: publish runs-on: ubuntu-latest permissions: contents: write # reads only. A draft release is visible only with write access steps: - - name: Wait for Maven Central - timeout-minutes: 90 - env: - RELEASES: ${{ needs.release.outputs.releases }} - run: | - version=$(echo "${RELEASES:-[]}" | jq -r '.[] | select(.package == "client-sdk-android") | .version') - if [ -z "$version" ]; then - echo "This run released nothing new. status --check covers the last release." - exit 0 - fi - url="https://repo1.maven.org/maven2/io/livekit/livekit-android/$version/livekit-android-$version.pom" - until curl -fsSI -o /dev/null "$url"; do - echo "Waiting for $url" - sleep 60 - done - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.event.pull_request.merge_commit_sha || inputs.ref || github.sha }} fetch-depth: 0 - - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + - uses: livekit/verwalter@9da894a1e4f7d298095a961be60c818afd47905b # v0.32.0-rc.1 with: command: status - args: --check + args: --check --wait 90m # Runs after the release is complete. A failure here is red, but the # release jobs above stay green.