diff --git a/.github/workflows/manual-release.yaml b/.github/workflows/manual-release.yaml index fe131f89..f5df668a 100644 --- a/.github/workflows/manual-release.yaml +++ b/.github/workflows/manual-release.yaml @@ -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 "" diff --git a/docs/versioning-and-releases.md b/docs/versioning-and-releases.md index 96f596a3..282115bb 100644 --- a/docs/versioning-and-releases.md +++ b/docs/versioning-and-releases.md @@ -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 --log-failed` - Verify NPM tokens are configured - Ensure branch protection allows workflow pushes +```` diff --git a/package.json b/package.json index 505cd395..f078562b 100644 --- a/package.json +++ b/package.json @@ -100,6 +100,6 @@ "node": ">=20.10.0" }, "publishConfig": { - "tag": "stable" + "access": "public" } }