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
6 changes: 6 additions & 0 deletions .github/workflows/release-esign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
- main
paths:
- 'packages/esign/**'
- 'packages/superdoc/**'
- 'packages/layout-engine/**'
- 'packages/super-editor/**'
- 'packages/ai/**'
- 'packages/word-layout/**'
- 'packages/preset-geometry/**'
- 'pnpm-workspace.yaml'
- '!**/*.md'
workflow_dispatch:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-template-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
- main
paths:
- 'packages/template-builder/**'
- 'packages/superdoc/**'
- 'packages/layout-engine/**'
- 'packages/super-editor/**'
- 'packages/ai/**'
- 'packages/word-layout/**'
- 'packages/preset-geometry/**'
- 'pnpm-workspace.yaml'
- '!**/*.md'
workflow_dispatch:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync-patches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ jobs:
else
echo "Merge conflict — attempting auto-resolution of release artifacts..."

# Auto-resolve expected conflicts: package.json version and CHANGELOG.md.
# Auto-resolve expected conflicts: package.json versions.
# For these files, keep main's version (semantic-release manages them per-branch).
for f in packages/superdoc/package.json packages/superdoc/CHANGELOG.md; do
for f in packages/superdoc/package.json packages/esign/package.json packages/template-builder/package.json apps/vscode-ext/package.json; do
if git diff --name-only --diff-filter=U | grep -qF "$f"; then
echo " Auto-resolving $f (keeping main's version)"
git checkout --ours "$f"
Comment thread
caio-pizzol marked this conversation as resolved.
Expand Down
37 changes: 35 additions & 2 deletions packages/esign/.releaserc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
/* eslint-env node */
/*
* Commit filter: esign depends on superdoc, so git log must include
* commits touching superdoc's sub-packages. This shared helper patches
* git-log-parser to expand path coverage. It REPLACES
* semantic-release-commit-filter — do not use both (the filter restricts
* to CWD, which undoes the expansion).
*
* Keep in sync with .github/workflows/release-esign.yml paths: trigger.
*/
require('../../scripts/semantic-release/patch-commit-filter.cjs')([
'packages/esign',
'packages/superdoc',
'packages/super-editor',
'packages/layout-engine',
'packages/ai',
'packages/word-layout',
'packages/preset-geometry',
'pnpm-workspace.yaml',
]);

const branch = process.env.GITHUB_REF_NAME || process.env.CI_COMMIT_BRANCH;

const branches = [
Expand All @@ -19,8 +39,21 @@ const config = {
branches,
tagFormat: 'esign-v${version}',
plugins: [
'semantic-release-commit-filter',
'@semantic-release/commit-analyzer',
[
'@semantic-release/commit-analyzer',
{
// Cap at minor — esign depends on superdoc, so upstream breaking
// changes don't break esign's own public API.
// Prevents accidental major bumps from superdoc feat!/BREAKING CHANGE commits.
releaseRules: [
{ breaking: true, release: 'minor' },
Comment thread
caio-pizzol marked this conversation as resolved.
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ type: 'revert', release: 'patch' },
],
},
],
notesPlugin,
['@semantic-release/npm', { npmPublish: true }],
],
Expand Down
37 changes: 35 additions & 2 deletions packages/template-builder/.releaserc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
/* eslint-env node */
/*
* Commit filter: template-builder depends on superdoc, so git log must include
* commits touching superdoc's sub-packages. This shared helper patches
* git-log-parser to expand path coverage. It REPLACES
* semantic-release-commit-filter — do not use both (the filter restricts
* to CWD, which undoes the expansion).
*
* Keep in sync with .github/workflows/release-template-builder.yml paths: trigger.
*/
require('../../scripts/semantic-release/patch-commit-filter.cjs')([
'packages/template-builder',
'packages/superdoc',
'packages/super-editor',
'packages/layout-engine',
'packages/ai',
'packages/word-layout',
'packages/preset-geometry',
'pnpm-workspace.yaml',
]);

const branch = process.env.GITHUB_REF_NAME || process.env.CI_COMMIT_BRANCH;

const branches = [
Expand All @@ -19,8 +39,21 @@ const config = {
branches,
tagFormat: 'template-builder-v${version}',
plugins: [
'semantic-release-commit-filter',
'@semantic-release/commit-analyzer',
[
'@semantic-release/commit-analyzer',
{
// Cap at minor — template-builder depends on superdoc, so upstream breaking
// changes don't break template-builder's own public API.
// Prevents accidental major bumps from superdoc feat!/BREAKING CHANGE commits.
releaseRules: [
{ breaking: true, release: 'minor' },
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ type: 'revert', release: 'patch' },
],
},
],
notesPlugin,
['@semantic-release/npm', { npmPublish: true }],
],
Expand Down
Loading