bmad-fh 6.0.0-alpha.23.bed978b2 → 6.0.0-alpha.23.cf22dff8

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.
@@ -41,12 +41,26 @@ jobs:
41
41
  env:
42
42
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43
43
  run: |
44
- echo "Publishing bmad-fh@${{ steps.version.outputs.version }}"
45
- npm publish
44
+ VERSION="${{ steps.version.outputs.version }}"
45
+ echo "Checking if bmad-fh@${VERSION} already exists..."
46
+
47
+ # Check if version already exists on npm
48
+ if npm view "bmad-fh@${VERSION}" version 2>/dev/null; then
49
+ echo "Version ${VERSION} already exists on npm, skipping publish"
50
+ echo "SKIPPED=true" >> $GITHUB_ENV
51
+ else
52
+ echo "Publishing bmad-fh@${VERSION}"
53
+ npm publish --ignore-scripts
54
+ echo "SKIPPED=false" >> $GITHUB_ENV
55
+ fi
46
56
 
47
57
  - name: Summary
48
58
  run: |
49
- echo "## Published bmad-fh@${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY
59
+ if [ "$SKIPPED" = "true" ]; then
60
+ echo "## Skipped - bmad-fh@${{ steps.version.outputs.version }} already exists" >> $GITHUB_STEP_SUMMARY
61
+ else
62
+ echo "## Published bmad-fh@${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY
63
+ fi
50
64
  echo "" >> $GITHUB_STEP_SUMMARY
51
65
  echo "### Installation" >> $GITHUB_STEP_SUMMARY
52
66
  echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env sh
2
+
3
+ # =============================================================================
4
+ # Call .githooks/post-checkout first (if exists)
5
+ # =============================================================================
6
+ if [ -x ".githooks/post-checkout" ]; then
7
+ .githooks/post-checkout "$@"
8
+ fi
9
+
10
+ # =============================================================================
11
+ # Husky-specific post-checkout logic can be added below
12
+ # =============================================================================
package/.husky/pre-commit CHANGED
@@ -1,5 +1,20 @@
1
1
  #!/usr/bin/env sh
2
2
 
3
+ # =============================================================================
4
+ # Call .githooks/pre-commit first (if exists)
5
+ # =============================================================================
6
+ if [ -x ".githooks/pre-commit" ]; then
7
+ .githooks/pre-commit "$@"
8
+ GITHOOKS_EXIT=$?
9
+ if [ $GITHOOKS_EXIT -ne 0 ]; then
10
+ exit $GITHOOKS_EXIT
11
+ fi
12
+ fi
13
+
14
+ # =============================================================================
15
+ # Husky-specific: lint-staged and tests
16
+ # =============================================================================
17
+
3
18
  # Auto-fix changed files and stage them
4
19
  npx --no-install lint-staged
5
20
 
@@ -10,11 +25,11 @@ npm test
10
25
  if command -v rg >/dev/null 2>&1; then
11
26
  if git diff --cached --name-only | rg -q '^docs/'; then
12
27
  npm run docs:validate-links
13
- npm run docs:build
28
+ npm run docs:build
14
29
  fi
15
30
  else
16
31
  if git diff --cached --name-only | grep -Eq '^docs/'; then
17
32
  npm run docs:validate-links
18
- npm run docs:build
33
+ npm run docs:build
19
34
  fi
20
35
  fi
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env sh
2
+
3
+ # Delegate to .githooks/pre-push for comprehensive checks
4
+ # (upstream sync, rebase check, single-commit enforcement)
5
+
6
+ if [ -x ".githooks/pre-push" ]; then
7
+ .githooks/pre-push "$@"
8
+ else
9
+ echo "Warning: .githooks/pre-push not found, skipping custom checks"
10
+ fi
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "bmad-fh",
4
- "version": "6.0.0-alpha.23.bed978b2",
4
+ "version": "6.0.0-alpha.23.cf22dff8",
5
5
  "description": "Breakthrough Method of Agile AI-driven Development",
6
6
  "keywords": [
7
7
  "agile",
@@ -39,7 +39,6 @@
39
39
  "lint:fix": "eslint . --ext .js,.cjs,.mjs,.yaml --fix",
40
40
  "lint:md": "markdownlint-cli2 \"**/*.md\"",
41
41
  "prepare": "husky",
42
- "publish": "npm publish",
43
42
  "rebundle": "node tools/cli/bundlers/bundle-web.js rebundle",
44
43
  "release:major": "gh workflow run \"Manual Release\" -f version_bump=major",
45
44
  "release:minor": "gh workflow run \"Manual Release\" -f version_bump=minor",