Skip to content

Commit 04a8ff6

Browse files
authored
fix(release): support large version package commits (#6636)
* fix(release): support large version package commits * chore(release): document transport exception
1 parent 6d0453b commit 04a8ff6

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
---
3+
4+
Restore the git-backed Version Packages update path so large generated release
5+
commits do not exceed GitHub's GraphQL payload limit.

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,19 @@ jobs:
113113
- name: Create Release Pull Request or Tag Release
114114
if: steps.release-relevance.outputs.relevant == 'true' && steps.release-artifacts.outputs.has_release_artifacts != 'true'
115115
id: changesets
116-
uses: changesets/action@v2
116+
# v2 writes the entire release commit through one GraphQL mutation,
117+
# which exceeds GitHub's 45 MB payload cap for beta-scale generated
118+
# schema and compliance artifacts. v1 pushes the generated commit via
119+
# git and supports the same Changesets v3 CLI commands below.
120+
uses: changesets/action@v1
117121
with:
118-
github-token: ${{ steps.app-token.outputs.token }}
119-
version-script: npm run version
120-
publish-script: npx --no-install changeset git-tag
121-
commit-message: 'Version Packages'
122-
pr-title: 'Version Packages'
123-
create-github-releases: true
122+
version: npm run version
123+
publish: npx --no-install changeset git-tag
124+
commit: 'Version Packages'
125+
title: 'Version Packages'
126+
createGithubReleases: true
124127
env:
128+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
125129
HUSKY: '0'
126130

127131
- name: Sign local protocol tarball if needed

0 commit comments

Comments
 (0)