File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717### If releasing new changes
1818
1919- [ ] Ran ` pnpm changeset ` to generate a changeset file
20- - [ ] Added the ` release ` label to the PR
2120
2221<!-- For more details check RELEASING.md -->
Original file line number Diff line number Diff line change 11name : " Release"
22
33on :
4- pull_request :
5- types : [closed]
4+ push :
65 branches : [main]
6+ paths :
7+ - ' .changeset/*.md'
78 workflow_dispatch :
89
910permissions :
1011 contents : read
1112
1213# Concurrency control: only one release process can run at a time
13- # This prevents race conditions if multiple PRs with 'release' label merge simultaneously
14+ # This prevents race conditions if multiple releasable changesets merge simultaneously
1415concurrency :
1516 group : release
1617 cancel-in-progress : false
1920 check-changesets :
2021 name : Check for changesets
2122 runs-on : ubuntu-latest
22- if : |
23- github.event_name == 'workflow_dispatch' ||
24- (github.event_name == 'pull_request' &&
25- github.event.pull_request.merged == true &&
26- contains(github.event.pull_request.labels.*.name, 'release'))
2723 outputs :
2824 has-changesets : ${{ steps.check.outputs.has-changesets }}
2925 steps :
@@ -137,7 +133,7 @@ jobs:
137133 id : commit-version-bump
138134 uses : planetscale/ghcommit-action@25309d8005ac7c3bcd61d3fe19b69e0fe47dbdde # v0.2.20
139135 with :
140- commit_message : " chore: release ${{ steps.apply-changesets.outputs.new-version }} [version bump]"
136+ commit_message : " chore: release ${{ steps.apply-changesets.outputs.new-version }} [version bump] [skip ci] "
141137 repo : ${{ github.repository }}
142138 branch : main
143139 env :
Original file line number Diff line number Diff line change @@ -24,13 +24,9 @@ The changeset file will be created in the `.changeset/` directory.
2424
2525Create a PR with your code changes and the changeset file.
2626
27- ### 3. Add the ` release ` label
27+ ### 3. Merge the PR
2828
29- When the PR is ready to be released, add the ` release ` label.
30-
31- ### 4. Merge the PR
32-
33- When a PR with the ` release ` label is merged to ` main ` , the release workflow will automatically:
29+ No release label is required. When the PR is merged to ` main ` , the release workflow will automatically:
3430
35311 . Check for pending changesets
36322 . Notify the Client Libraries team in Slack for approval
You can’t perform that action at this time.
0 commit comments