Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
### If releasing new changes

- [ ] Ran `pnpm changeset` to generate a changeset file
- [ ] Added the `release` label to the PR

<!-- For more details check RELEASING.md -->
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: "Release"

on:
pull_request:
types: [closed]
push:
branches: [main]
paths:
- '.changeset/*.md'
workflow_dispatch:

permissions:
contents: read

# Concurrency control: only one release process can run at a time
# This prevents race conditions if multiple PRs with 'release' label merge simultaneously
# This prevents race conditions if multiple releasable changesets merge simultaneously
concurrency:
group: release
cancel-in-progress: false
Expand All @@ -19,11 +20,6 @@ jobs:
check-changesets:
name: Check for changesets
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' &&
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'release'))
outputs:
has-changesets: ${{ steps.check.outputs.has-changesets }}
steps:
Expand Down Expand Up @@ -137,7 +133,7 @@ jobs:
id: commit-version-bump
uses: planetscale/ghcommit-action@25309d8005ac7c3bcd61d3fe19b69e0fe47dbdde # v0.2.20
with:
commit_message: "chore: release ${{ steps.apply-changesets.outputs.new-version }} [version bump]"
commit_message: "chore: release ${{ steps.apply-changesets.outputs.new-version }} [version bump] [skip ci]"
repo: ${{ github.repository }}
branch: main
env:
Expand Down
8 changes: 2 additions & 6 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ The changeset file will be created in the `.changeset/` directory.

Create a PR with your code changes and the changeset file.

### 3. Add the `release` label
### 3. Merge the PR

When the PR is ready to be released, add the `release` label.

### 4. Merge the PR

When a PR with the `release` label is merged to `main`, the release workflow will automatically:
No release label is required. When the PR is merged to `main`, the release workflow will automatically:

1. Check for pending changesets
2. Notify the Client Libraries team in Slack for approval
Expand Down
Loading