
publishing
by adeze
publishingは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。
SKILL.md
name: publishing description: Publishing and Release Workflows with GitHub Actions and npm Trusted Publishers keywords: [ publishing, npm, github-actions, semantic-versioning, ci-cd, trusted-publishers, ]
Publishing Skill for @adeze/raindrop-mcp
Automates and manages the complete publishing workflow for @adeze/raindrop-mcp from version bumping through npm registry deployment.
Overview
This skill encapsulates the end-to-end publishing process, ensuring consistent version management, proper synchronization across configuration files, and reliable deployment via GitHub Actions with npm Trusted Publishers.
Publishing Workflow
1. Pre-Publication Checklist
Before publishing, verify:
- ✅ All tests passing:
bun run test - ✅ Type-check passing:
bun run type-check - ✅ Build successful:
bun run build - ✅ All changes committed to git
- ✅ No uncommitted work on master branch
2. Version Bump
Bump semantic version using Bun:
bun pm version <MAJOR.MINOR.PATCH>
Examples:
- Patch:
bun pm version 2.1.2(bug fixes) - Minor:
bun pm version 2.2.0(new features) - Major:
bun pm version 3.0.0(breaking changes)
3. Sync All Version Files
Update version numbers in ALL four files to maintain consistency:
Files to update:
- package.json - Already updated by
bun pm version - manifest.json - DXT manifest version (lines 2-4)
- CLAUDE.md - Project guidelines (around line 8)
- README.md - User documentation (around line 278)
Version reference locations:
// manifest.json
{
"dxt_version": "0.1",
"name": "@adeze/raindrop-mcp",
"version": "X.X.X",
// CLAUDE.md
### Version Information
- **Current version**: X.X.X
// README.md
## 📋 Recent Enhancements (vX.X.X)
4. Build & Commit
# Rebuild with new version
bun run build
# Stage all version updates
git add package.json manifest.json CLAUDE.md README.md
# Commit with semantic message
git commit -m "chore: bump version to X.X.X"
# Push to master
git push origin master
5. Create & Push Version Tag
# Create semantic version tag
git tag vX.X.X
# Push tag to trigger GitHub Actions
git push origin vX.X.X
Note: If tag already exists:
git tag -d vX.X.X
git tag vX.X.X
git push origin vX.X.X --force
6. GitHub Actions Automatic Steps
Once tag is pushed, GitHub Actions automatically:
- ✅ Checks out code
- ✅ Sets up Node.js & Bun
- ✅ Installs dependencies
- ✅ Runs type-check:
bun run type-check - ✅ Builds:
bun run build - ✅ Publishes to npm via Trusted Publishers (OIDC-based, no token needed)
- ✅ Deletes existing GitHub Release (if present)
- ✅ Creates new GitHub Release
npm Trusted Publishers Setup
One-time setup required:
- Go to: https://www.npmjs.com/settings/@adeze/packages
- Click raindrop-mcp package
- Go to Settings tab
- Scroll to Publishing access
- Click Configure trusted publishers
- Select GitHub Actions
- Fill in:
- Owner:
adeze - Repository:
raindrop-mcp - Workflow:
publish.yml - Environment: (leave blank)
- Owner:
- Click Add
Benefits:
- 🔒 No static tokens needed (OIDC-based)
- 🔄 No token rotation required
- 📋 Automatic provenance attestation
- ✨ Zero maintenance
Workflow File
Location: .github/workflows/publish.yml
Key permissions:
permissions:
id-token: write
contents: write
Key steps:
- Node.js 24 with
registry-url: https://registry.npmjs.org npm publish --provenance --access public- GitHub release creation: deletes existing release first, then creates new one
Monitoring Workflow Status
Using GitHub CLI
Check the latest workflow run:
gh run list --limit 1
Output statuses:
*- Running✓- Completed successfully✗- Failed
View detailed logs:
gh run view <run-id>
Using GitHub MCP Tools
Check latest release:
Call mcp_github_get_latest_release with:
owner: adezerepo: raindrop-mcp
This returns the most recent release and confirms:
tag_namematches your version (e.g., v2.1.2)published_atis recent- Workflow executed successfully
Troubleshooting
Error: "cannot publish over previously published versions"
Cause: Version already exists on npm Solution: Bump semantic version and retry
Error: "Release.tag_name already exists"
Cause: GitHub release already exists from previous publish attempt Solution: Workflow automatically deletes existing release before creating a new one
Error: "need auth This command requires you to be logged in"
Cause: npm Trusted Publishers not configured Solution: Complete one-time setup at https://www.npmjs.com/settings/@adeze/packages
Full Publishing Command Sequence
# 1. Verify all tests pass
bun run test
bun run type-check
bun run build
# 2. Bump version (example: 2.1.1 → 2.1.2)
bun pm version 2.1.2
# 3. Update all version files
# - manifest.json (line 3)
# - CLAUDE.md (line 9)
# - README.md (line 278)
# 4. Build & commit
bun run build
git add package.json manifest.json CLAUDE.md README.md
git commit -m "chore: bump version to 2.1.2"
git push origin master
# 5. Create & push tag (triggers workflow)
git tag v2.1.2
git push origin v2.1.2
# 6. Monitor workflow with GitHub CLI
gh run list --limit 1
# 7. Verify once workflow completes (✓ status)
npm view @adeze/raindrop-mcp@2.1.2
mcp_github_get_latest_release owner=adeze repo=raindrop-mcp
Verification
After workflow completes (usually 30-60 seconds):
-
Check workflow status with GitHub CLI:
gh run list --limit 1 # Should show ✓ status indicating success -
Verify latest GitHub release created:
- Use
mcp_github_get_latest_releaseto verify release exists - Should match the version you just published
bodyfield contains "MCP Server for Raindrop.io"
- Use
-
Verify npm publication:
npm view @adeze/raindrop-mcp@2.1.2Should return package metadata confirming it's live
-
Verify package installation:
npm install @adeze/raindrop-mcp@2.1.2
Important Notes
- Semantic Versioning: Follow semver strictly (MAJOR.MINOR.PATCH)
- Version Synchronization: All 4 files MUST have matching versions
- Master Branch: Always publish from master
- No Token Management: Trusted Publishers eliminates token rotation burden
- Provenance: All publishes include cryptographic provenance attestation
Related Resources
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
1ヶ月以内に更新
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です



