Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 963 Bytes

File metadata and controls

50 lines (35 loc) · 963 Bytes

Release Guide

Prerequisites

  • npm アカウントにログイン済み (npm whoami で確認)
  • main ブランチが最新の状態

Release Steps

# 1. main に切り替え、最新化
git checkout main
git pull origin main

# 2. バージョンを上げる (patch / minor / major)
npm version patch   # 1.0.0 → 1.0.1
npm version minor   # 1.0.0 → 1.1.0
npm version major   # 1.0.0 → 2.0.0

# 3. ビルド・テスト・監査
pnpm install
pnpm build
pnpm test
pnpm audit

# 4. publish (prepack が自動で build + oclif manifest を実行)
npm publish

# 5. タグとコミットを push
git push origin main --tags

# 6. GitHub Release を作成
gh release create v$(node -p "require('./package.json').version") --generate-notes

Dry Run

publish 前に内容を確認したい場合:

npm pack --dry-run

Revert

publish を取り消す場合 (72時間以内):

npm unpublish gitmoji-c@<version>