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
5 changes: 5 additions & 0 deletions .changeset/fix-back-merge-loop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@stackwright/cli": patch
---

Upgrade the back-merge rebase conflict handler from a one-shot block to a loop. Dev can accumulate multiple alpha-bump commits that all modified `.changeset/pre.json` — the previous one-shot `||{ }` only resolved the first conflict. The loop now runs until all pre.json conflicts are resolved or an unexpected conflict is encountered.
5 changes: 5 additions & 0 deletions .changeset/fix-back-merge-pre-json-conflict.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@stackwright/cli": patch
---

Fix back-merge into dev failing with a modify/delete conflict on `.changeset/pre.json` during rebase. The release workflow deletes this file via `changeset pre exit`, but dev's alpha-bump commits still reference it. The rebase now explicitly resolves the conflict by accepting main's deletion and continuing.
5 changes: 5 additions & 0 deletions .changeset/fix-js-yaml-override-conflict.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@stackwright/cli": patch
---

Fix js-yaml version override conflict in pnpm overrides that caused `yaml.safeLoad is removed` errors when running `changeset pre exit` in CI. The global `js-yaml: >=4.1.1` override was stomping the scoped `read-yaml-file>js-yaml: ^3` override, forcing js-yaml v4 into read-yaml-file which doesn't support it.
29 changes: 29 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"mode": "pre",
"tag": "alpha",
"initialVersions": {
"stackwright-docs": "0.1.3",
"@stackwright/build-scripts": "0.6.0",
"@stackwright/cli": "0.8.2",
"@stackwright/collections": "0.1.0",
"@stackwright/core": "0.8.1",
"@stackwright/e2e": "0.3.0",
"@stackwright/hooks-registry": "0.1.0",
"@stackwright/icons": "0.5.1",
"launch-stackwright": "0.2.2",
"@stackwright/maplibre": "2.0.1",
"@stackwright/mcp": "0.4.2",
"@stackwright/nextjs": "0.5.0",
"@stackwright/otters": "0.2.0",
"@stackwright/sbom-generator": "0.2.0",
"@stackwright/scaffold-core": "0.3.0",
"@stackwright/themes": "0.5.2",
"@stackwright/types": "1.3.0",
"@stackwright/ui-shadcn": "0.1.2"
},
"changesets": [
"fix-back-merge-loop",
"fix-back-merge-pre-json-conflict",
"fix-js-yaml-override-conflict"
]
}
20 changes: 13 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,19 @@ jobs:
#
# -X ours: when conflicts arise (e.g. version numbers in package.json),
# prefer main's graduated stable versions over dev's stale alpha versions.
git rebase origin/main -X ours || {
# Expected modify/delete conflict on .changeset/pre.json:
# release deleted it via `changeset pre exit`, but dev's alpha-bump
# commit still referenced it. Accept main's deletion and continue.
git rm -f .changeset/pre.json 2>/dev/null || true
GIT_EDITOR=true git rebase --continue
}
git rebase origin/main -X ours || true
while [ -d ".git/rebase-merge" ]; do
if git status --porcelain | grep -q "pre.json"; then
# Expected: pre.json was deleted by `changeset pre exit` on main,
# but dev's alpha-bump commits still modified it. Accept the deletion.
git rm -f .changeset/pre.json 2>/dev/null || true
GIT_EDITOR=true git rebase --continue || true
else
echo "Unexpected rebase conflict — aborting"
git rebase --abort
exit 1
fi
done
# Re-enter prerelease mode so the next dev push produces alphas.
if [ ! -f ".changeset/pre.json" ]; then
pnpm changeset pre enter alpha
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# @stackwright/cli

## 0.8.5
## 0.8.5-alpha.3

### Patch Changes

- c9daf18: Fix back-merge into dev failing with a modify/delete conflict on `.changeset/pre.json` during rebase. The release workflow deletes this file via `changeset pre exit`, but dev's alpha-bump commits still reference it. The rebase now explicitly resolves the conflict by accepting main's deletion and continuing.
- c9daf18: Fix js-yaml version override conflict in pnpm overrides that caused `yaml.safeLoad is removed` errors when running `changeset pre exit` in CI. The global `js-yaml: >=4.1.1` override was stomping the scoped `read-yaml-file>js-yaml: ^3` override, forcing js-yaml v4 into read-yaml-file which doesn't support it.
- a12100d: Upgrade the back-merge rebase conflict handler from a one-shot block to a loop. Dev can accumulate multiple alpha-bump commits that all modified `.changeset/pre.json` — the previous one-shot `||{ }` only resolved the first conflict. The loop now runs until all pre.json conflicts are resolved or an unexpected conflict is encountered.

## 0.8.5-alpha.2

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stackwright/cli",
"version": "0.8.5",
"version": "0.8.5-alpha.3",
"description": "CLI for Stackwright framework",
"license": "MIT",
"repository": {
Expand Down
2 changes: 0 additions & 2 deletions packages/collections/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# @stackwright/collections

## 0.1.1

## 0.1.1-alpha.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/collections/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stackwright/collections",
"version": "0.1.1",
"version": "0.1.1-alpha.4",
"description": "CollectionProvider interface and file-backed implementation for Stackwright",
"license": "MIT",
"repository": {
Expand Down
2 changes: 0 additions & 2 deletions packages/hooks-registry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# @stackwright/hooks-registry

## 0.1.1

## 0.1.1-alpha.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hooks-registry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stackwright/hooks-registry",
"version": "0.1.1",
"version": "0.1.1-alpha.3",
"description": "Singleton registry for scaffold hooks - survives module boundary crossings",
"license": "MIT",
"repository": {
Expand Down
8 changes: 3 additions & 5 deletions packages/launch-stackwright/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# launch-stackwright

## 0.2.5
## 0.2.5-alpha.5

### Patch Changes

- Updated dependencies [c9daf18]
- Updated dependencies [c9daf18]
- @stackwright/cli@0.8.5
- @stackwright/scaffold-core@0.3.1
- Updated dependencies [a12100d]
- @stackwright/cli@0.8.5-alpha.3

## 0.2.5-alpha.4

Expand Down
2 changes: 1 addition & 1 deletion packages/launch-stackwright/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "launch-stackwright",
"version": "0.2.5",
"version": "0.2.5-alpha.5",
"description": "Launch a new Stackwright project with the otter raft ready to build",
"license": "MIT",
"repository": {
Expand Down
14 changes: 10 additions & 4 deletions packages/mcp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# @stackwright/mcp

## 0.4.5
## 0.4.5-alpha.6

### Patch Changes

- Updated dependencies [c9daf18]
- Updated dependencies [c9daf18]
- @stackwright/cli@0.8.5
- Updated dependencies [a12100d]
- @stackwright/cli@0.8.5-alpha.3

## 0.4.5-alpha.5

### Patch Changes

- Updated dependencies [11bfe0f]
- @stackwright/cli@0.8.5-alpha.2

## 0.4.5-alpha.5

Expand Down
2 changes: 1 addition & 1 deletion packages/mcp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stackwright/mcp",
"version": "0.4.5",
"version": "0.4.5-alpha.6",
"description": "MCP server for Stackwright — exposes content types, page management, and validation as agent tools",
"license": "MIT",
"repository": {
Expand Down
6 changes: 0 additions & 6 deletions packages/scaffold-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# Changelog

## 0.3.1

### Patch Changes

- @stackwright/hooks-registry@0.1.1

## 0.3.1-alpha.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/scaffold-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stackwright/scaffold-core",
"version": "0.3.1",
"version": "0.3.1-alpha.3",
"description": "Scaffold hooks system for Stackwright - enables extensible post-scaffold processing",
"license": "MIT",
"repository": {
Expand Down
Loading