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
2 changes: 2 additions & 0 deletions .changeset/format-generated-release-pr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"check:promoted-run-paths": "node scripts/check-promoted-run-paths.mjs",
"check:release-pack": "node scripts/check-release-pack.mjs",
"changeset": "changeset",
"version-packages": "changeset version",
"version-packages": "changeset version && npm run fmt",
"release": "node scripts/check-release-environment.mjs && npm run check:release-pack && changeset publish",
"verify": "npm run fix && npm run test && npm run build",
"verify:full": "npm run fix && npm run test:full && npm run build"
Expand Down
4 changes: 4 additions & 0 deletions scripts/release-workflow.contract.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ describe('FE-1050 release workflow contracts', () => {
expect(releaseWorkflow).toMatch(/token: \$\{\{ steps\.app-token\.outputs\.token \}\}\n\s+fetch-depth: 0/);
});

it('formats files generated by the custom Changesets version command', () => {
expect(packageJson.scripts['version-packages']).toBe('changeset version && npm run fmt');
});

it('requires explicit release intent on ordinary pull requests', () => {
expect(testWorkflow).toContain('fetch-depth: 0');
expect(testWorkflow).toContain("github.base_ref == 'next'");
Expand Down
Loading