buildwright 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -19,11 +19,11 @@ NEW_VERSION=$(node -p "require('./cli/package.json').version")
|
|
|
19
19
|
git add cli/package.json cli/package-lock.json SKILL.md
|
|
20
20
|
git commit -m "chore: bump version to v$NEW_VERSION"
|
|
21
21
|
|
|
22
|
-
# Step 3:
|
|
23
|
-
git tag -a "v$NEW_VERSION" -m "Release v$NEW_VERSION"
|
|
24
|
-
|
|
25
|
-
# Step 4: push commit + tag
|
|
22
|
+
# Step 3: push commit first
|
|
26
23
|
git push
|
|
24
|
+
|
|
25
|
+
# Step 4: annotated tag (after commit is on remote)
|
|
26
|
+
git tag -a "v$NEW_VERSION" -m "Release v$NEW_VERSION"
|
|
27
27
|
git push origin "v$NEW_VERSION"
|
|
28
28
|
|
|
29
29
|
# Step 5: GitHub release with auto-generated notes
|
|
@@ -294,9 +294,11 @@ fi
|
|
|
294
294
|
|
|
295
295
|
# ============================================================================
|
|
296
296
|
# 7. README.md → cli/README.md (single source of truth for npm package page)
|
|
297
|
+
# Only runs in the buildwright repo itself, which has a cli/ directory.
|
|
298
|
+
# Generated services do not have cli/ and must not fail here.
|
|
297
299
|
# ============================================================================
|
|
298
300
|
|
|
299
|
-
if [ "$CHECK_ONLY" = false ] && [ -f "README.md" ]; then
|
|
301
|
+
if [ "$CHECK_ONLY" = false ] && [ -f "README.md" ] && [ -d "cli" ]; then
|
|
300
302
|
cp README.md cli/README.md
|
|
301
303
|
echo " README.md → cli/README.md"
|
|
302
304
|
fi
|
|
@@ -323,7 +325,9 @@ else
|
|
|
323
325
|
echo " CLAUDE.md → AGENTS.md"
|
|
324
326
|
echo " SKILL.md → dist/buildwright/SKILL.md"
|
|
325
327
|
echo " .buildwright/commands/ → skills/ (Codex CLI skill discovery)"
|
|
326
|
-
|
|
328
|
+
if [ -d "cli" ]; then
|
|
329
|
+
echo " README.md → cli/README.md (npm package page)"
|
|
330
|
+
fi
|
|
327
331
|
|
|
328
332
|
# Validate all commands are documented in SKILL.md and README.md
|
|
329
333
|
if [ -f "scripts/validate-docs.sh" ]; then
|