Skip to content

Commit c616211

Browse files
Brian MadisonBrian Madison
authored andcommitted
chore: add npm publishing setup
- Add .github/workflows/publish.yaml for auto-publish on tag push - Add .npmrc for public access configuration - Add .npmignore to exclude dev files from package - Update package.json release scripts to use git tags
1 parent 02053b3 commit c616211

3 files changed

Lines changed: 46 additions & 5 deletions

File tree

.npmignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Git
2+
.git
3+
.gitignore
4+
.github
5+
6+
# Documentation (keep package.json)
7+
README.md
8+
*.md
9+
!README.md
10+
docs/
11+
12+
# CI/CD
13+
.npmrc
14+
15+
# Development
16+
test/
17+
*.test.js
18+
.eslintrc.*
19+
.prettierrc.*
20+
.husky/
21+
22+
# IDE
23+
.vscode/
24+
.idea/
25+
*.swp
26+
*.swo
27+
28+
# OS
29+
.DS_Store
30+
Thumbs.db
31+
32+
# Node (but not dependencies)
33+
node_modules/
34+
35+
# Misc
36+
*.log
37+
.env
38+
.env.*

.npmrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
registry=https://registry.npmjs.org
1+
# NPM configuration for BMad modules
2+
# This ensures packages are published with public access
3+
access=public

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
"lint:fix": "eslint . --ext .js,.cjs,.mjs,.yaml --fix",
2323
"lint:md": "markdownlint-cli2 \"**/*.md\"",
2424
"prepare": "husky",
25-
"release:major": "gh workflow run \"Manual Release\" -f version_bump=major",
26-
"release:minor": "gh workflow run \"Manual Release\" -f version_bump=minor",
27-
"release:patch": "gh workflow run \"Manual Release\" -f version_bump=patch",
28-
"release:watch": "gh run watch",
25+
"release": "npm run release:patch",
26+
"release:major": "npm version major && git push --follow-tags",
27+
"release:minor": "npm version minor && git push --follow-tags",
28+
"release:patch": "npm version patch && git push --follow-tags",
29+
"release:prerelease": "npm version prerelease && git push --follow-tags",
2930
"test": "npm run test:schemas && npm run validate:schemas && npm run lint && npm run lint:md && npm run format:check",
3031
"test:schemas": "node test/test-agent-schema.js",
3132
"validate:schemas": "node test/validate-agent-schema.js"

0 commit comments

Comments
 (0)