Repository navigation
Release with verwalter #397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Fails a PR that changes the package 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@v4 | ||
| - uses: livekit/verwalter@359985c1e5567b17ae84db0241fbb305c383f89e # v0.30.0 | ||
| with: | ||
| command: check |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # On demand: open an rc PR from the branch the workflow is run on. The | ||
| # level comes from the pending changesets. Merging the PR tags | ||
| # v2.2.0-rc.1, and the next run numbers rc.2. Changesets stay pending for | ||
| # the final release. | ||
| name: Pre-release PR | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| pr: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # the tags number the rc | ||
| - uses: livekit/verwalter@359985c1e5567b17ae84db0241fbb305c383f89e # v0.30.0 | ||
| with: | ||
| command: pre-release | ||
| args: --target ${{ github.ref_name }} | ||
| app-client-id: ${{ secrets.VERWALTER_RELEASE_CLIENT_ID }} | ||
| app-private-key: ${{ secrets.VERWALTER_RELEASE_APP_KEY }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # 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@v4 | ||
| with: | ||
| fetch-depth: 0 # the commit that added a changeset gives its changelog line the PR and author | ||
| - uses: livekit/verwalter@359985c1e5567b17ae84db0241fbb305c383f89e # v0.30.0 | ||
| with: | ||
| command: pr | ||
| # A GitHub App token lets the release PR start CI. The default | ||
| # github.token does not. Without these secrets, github.token is used. | ||
| app-client-id: ${{ secrets.VERWALTER_RELEASE_CLIENT_ID }} | ||
| app-private-key: ${{ secrets.VERWALTER_RELEASE_APP_KEY }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # After the release PR merges: tag and create the GitHub release. The | ||
| # package is installed by git URL and tag, so the tag is the whole release. | ||
| # There is no build job and no publish job. | ||
| name: Release | ||
|
|
||
| on: | ||
| # No branch filter: an rc PR from pre-release.yml targets the branch it | ||
| # was run on. The job condition below decides which PRs release. | ||
| pull_request: | ||
| types: [closed] | ||
| # Re-run by hand after a fix: `verwalter release` resumes from the | ||
| # current state (tag, release) and skips what is done. | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| release: | ||
| # Only a release PR the tool opened: the branch prefix alone would let | ||
| # any pushed `release/*` branch start a release. The author is the | ||
| # GitHub App of `app-client-id`. Without an App, it is github-actions[bot]. | ||
| 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, '<!-- verwalter release -->')) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| 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 || github.sha }} | ||
| fetch-depth: 0 | ||
| - uses: livekit/verwalter@359985c1e5567b17ae84db0241fbb305c383f89e # v0.30.0 | ||
| with: | ||
| command: release | ||
| app-client-id: ${{ secrets.VERWALTER_RELEASE_CLIENT_ID }} | ||
| app-private-key: ${{ secrets.VERWALTER_RELEASE_APP_KEY }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Changelog | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this file will accumulate changelogs or just hold the ones from the last release? Is this a 1:1 copy from the changeset files in the end?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will accumulate and end up looking like this https://github.com/livekit/client-sdk-js/blob/main/CHANGELOG.md |
||
|
|
||
| The notes for 2.1.1 and earlier are on the [releases page](https://github.com/livekit/client-sdk-unity/releases). | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #:schema https://raw.githubusercontent.com/livekit/verwalter/main/schemas/v1.json | ||
|
|
||
| [packages."io.livekit.livekit-sdk"] | ||
| path = "." | ||
| versioning.files = [ | ||
| "package.json", | ||
| { path = "package.json", regex = 'releases/tag/v(?<version>[^"]+)' }, | ||
| { path = "README.md", regex = '`#v(?<version>\d[^`]*)`' }, | ||
|
Comment on lines
+6
to
+8
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is package.json listed here once standalone and once in the { path, regex } pattern? Is the standalone using a default regex?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. exactly. |
||
| ] | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.