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:
parent
8573852a6e
commit
c0899432c1
|
|
@ -146,10 +146,10 @@ jobs:
|
||||||
echo "📝 Version bump and tag were created successfully."
|
echo "📝 Version bump and tag were created successfully."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Publish to NPM with stable tag
|
- name: Publish to NPM
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
run: npm publish --tag stable
|
run: npm publish
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
|
|
@ -165,7 +165,7 @@ jobs:
|
||||||
- name: Summary
|
- name: Summary
|
||||||
run: |
|
run: |
|
||||||
echo "🎉 Successfully released v${{ steps.version.outputs.new_version }}!"
|
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 "🏷️ 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 "✅ Users running 'npx bmad-method install' will now get version ${{ steps.version.outputs.new_version }}"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
||||||
|
|
@ -39,9 +39,8 @@ When you trigger a release, the GitHub Actions workflow automatically:
|
||||||
- 🔧 **Maintenance** (`chore:`, `Chore:`)
|
- 🔧 **Maintenance** (`chore:`, `Chore:`)
|
||||||
- 📦 **Other Changes** (everything else)
|
- 📦 **Other Changes** (everything else)
|
||||||
4. ✅ **Creates Git Tag** - Tags the release version
|
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
|
6. ✅ **Creates GitHub Release** - With formatted release notes
|
||||||
7. ✅ **Updates Dist Tags** - So `npx bmad-method install` gets latest version
|
|
||||||
|
|
||||||
## 📋 Sample Release Notes
|
## 📋 Sample Release Notes
|
||||||
|
|
||||||
|
|
@ -81,8 +80,8 @@ npx bmad-method install
|
||||||
After any release, users can immediately get the new version with:
|
After any release, users can immediately get the new version with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx bmad-method install # Always gets latest stable release
|
npx bmad-method install # Always gets latest release
|
||||||
````
|
```
|
||||||
|
|
||||||
## 📊 Preview Before 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`
|
- Check GitHub Actions logs: `gh run view <run-id> --log-failed`
|
||||||
- Verify NPM tokens are configured
|
- Verify NPM tokens are configured
|
||||||
- Ensure branch protection allows workflow pushes
|
- Ensure branch protection allows workflow pushes
|
||||||
|
````
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,6 @@
|
||||||
"node": ">=20.10.0"
|
"node": ">=20.10.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"tag": "stable"
|
"access": "public"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue