fix: simplify npm publishing to use latest tag only

- Remove stable tag complexity from workflow
- Publish directly to latest tag (default for npx)
- Update documentation to reflect single tag approach
This commit is contained in:
Brian Madison
2025-08-16 20:58:22 -05:00
parent 8573852a6e
commit c0899432c1
3 changed files with 8 additions and 8 deletions

View File

@@ -146,10 +146,10 @@ jobs:
echo "📝 Version bump and tag were created successfully."
fi
- name: Publish to NPM with stable tag
- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --tag stable
run: npm publish
- name: Create GitHub Release
uses: actions/create-release@v1
@@ -165,7 +165,7 @@ jobs:
- name: Summary
run: |
echo "🎉 Successfully released v${{ steps.version.outputs.new_version }}!"
echo "📦 Published to NPM with @stable tag"
echo "📦 Published to NPM with @latest tag"
echo "🏷️ Git tag: v${{ steps.version.outputs.new_version }}"
echo "✅ Users running 'npx bmad-method install' will now get version ${{ steps.version.outputs.new_version }}"
echo ""

View File

@@ -39,9 +39,8 @@ When you trigger a release, the GitHub Actions workflow automatically:
- 🔧 **Maintenance** (`chore:`, `Chore:`)
- 📦 **Other Changes** (everything else)
4.**Creates Git Tag** - Tags the release version
5.**Publishes to NPM** - With `@stable` tag for user installations
5.**Publishes to NPM** - With `@latest` tag for user installations
6.**Creates GitHub Release** - With formatted release notes
7.**Updates Dist Tags** - So `npx bmad-method install` gets latest version
## 📋 Sample Release Notes
@@ -81,8 +80,8 @@ npx bmad-method install
After any release, users can immediately get the new version with:
```bash
npx bmad-method install # Always gets latest stable release
````
npx bmad-method install # Always gets latest release
```
## 📊 Preview Before Release
@@ -145,3 +144,4 @@ npm view bmad-method versions --json
- Check GitHub Actions logs: `gh run view <run-id> --log-failed`
- Verify NPM tokens are configured
- Ensure branch protection allows workflow pushes
````

View File

@@ -100,6 +100,6 @@
"node": ">=20.10.0"
},
"publishConfig": {
"tag": "stable"
"access": "public"
}
}