You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project uses [release-it](https://github.com/release-it/release-it) with [conventional-changelog](https://www.conventionalcommits.org/) for automated releases. Each package (`appkit` and `appkit-ui`) can be released independently.
107
+
108
+
#### GitHub Actions (Recommended)
109
+
110
+
Releases are automated via GitHub Actions and trigger in two ways:
111
+
112
+
**Automatic (on merge to main):**
113
+
- When PRs are merged to `main`, the workflow automatically runs
114
+
- Analyzes commits since last release using conventional commits
115
+
- If there are `feat:` or `fix:` commits, both packages are released together
116
+
- If no releasable commits, the release is skipped
117
+
118
+
**Manual (workflow_dispatch):**
119
+
1. Go to **Actions → Release → Run workflow**
120
+
2. Optionally enable "Dry run" to preview without publishing
121
+
3. Click "Run workflow"
122
+
123
+
**Required GitHub Secrets:**
124
+
-`NPM_TOKEN` - npm automation token for publishing
125
+
126
+
The workflow automatically:
127
+
- Builds all packages
128
+
- Bumps version based on conventional commits
129
+
- Updates `CHANGELOG.md`
130
+
- Creates git tag and GitHub release
131
+
- Publishes to npm
132
+
133
+
#### Local Release (Alternative)
134
+
135
+
**Prerequisites:**
136
+
- Be on `main` branch with a clean working directory
137
+
- Set `GITHUB_TOKEN` environment variable
138
+
- Be logged in to npm (`npm login`)
139
+
140
+
```bash
141
+
# Dry run (preview what will happen without making changes)
142
+
pnpm release:dry # Dry run for both packages
143
+
144
+
# Interactive release (prompts for version bump)
145
+
pnpm release # Release both packages
146
+
147
+
# CI release (non-interactive, for automation)
148
+
pnpm release:ci # Release both packages in CI mode
149
+
```
150
+
151
+
#### Version Bumps (Conventional Commits)
152
+
153
+
-`feat:` → Minor version bump (0.1.0 → 0.2.0)
154
+
-`fix:` → Patch version bump (0.1.0 → 0.1.1)
155
+
-`feat!:` or `BREAKING CHANGE:` → Major version bump (0.1.0 → 1.0.0)
0 commit comments