Skip to content

Commit f48291f

Browse files
authored
chore(release): publish 0.3.1 (#11)
* chore(release): publish 0.3.1 * docs(release): document branch-protected PR workflow
1 parent 21d712a commit f48291f

4 files changed

Lines changed: 31 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.3.1 - 2026-05-29
4+
5+
- Bump CLI version header to `0.29.0` for Command Code API parity.
6+
- Harden PR security pipeline CI configuration.
7+
38
## 0.3.0 - 2026-05-28
49

510
- Add OMP (Oh My Pi) provider compatibility: support `~/.omp/agent/auth.json` auth path, handle OMP's env-var-name-as-apiKey quirk, convert OMP system prompt arrays to text.

RELEASE.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Recommended flow:
77
- publish prereleases with the `next` dist-tag
88
- smoke-test the npm package directly in pi
99
- publish stable releases with the `latest` dist-tag
10-
- commit and tag the stable release
10+
- commit the release on a branch, open a PR, and merge after CI passes
11+
- tag the stable release on `main` after merge
1112
- comment on the related PR or issue after shipping
1213

1314
## Prerelease flow
@@ -144,12 +145,32 @@ npm pack --dry-run
144145
git diff --check
145146
```
146147

147-
Commit and tag:
148+
Commit on a release branch and open a PR:
148149

149150
```sh
151+
git checkout -b release/0.1.1
150152
git add .
151153
git commit -m "Release 0.1.1"
154+
git push origin release/0.1.1
155+
gh pr create --title "chore(release): publish 0.1.1" --base main
156+
```
157+
158+
`main` is branch-protected. The release must go through a PR with passing CI.
159+
160+
Once CI passes, approve and merge:
161+
162+
```sh
163+
gh pr review <number> --approve
164+
gh pr merge <number> --squash --delete-branch
165+
```
166+
167+
After merge, pull `main` and tag locally:
168+
169+
```sh
170+
git checkout main
171+
git pull origin main
152172
git tag -a v0.1.1 -m "Release 0.1.1"
173+
git push origin v0.1.1
153174
```
154175

155176
Publish stable:
@@ -172,13 +193,6 @@ Expected:
172193
- `latest` points to the stable version
173194
- the stable version exists on npm
174195

175-
Push commit and tag:
176-
177-
```sh
178-
git push origin main
179-
git push origin v0.1.1
180-
```
181-
182196
## GitHub follow-up
183197

184198
Comment on the related PR and issue after publishing and pushing:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pi-commandcode-provider",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "pi custom provider for Command Code API (commandcode.ai)",
55
"type": "module",
66
"keywords": [

0 commit comments

Comments
 (0)