Skip to content

Commit d3f8207

Browse files
authored
fix: reset package.json version to 0.0.0 and update release command (#9)
## Summary - Reset package.json version to 0.0.0 since versions are managed on release tags - Update the release command to find current version from GitHub releases instead of package.json ## Why this change? The release workflow updates package.json version on the release tag, not on the main branch. This is a common pattern for GitHub Actions where: - The main branch stays at a development version (0.0.0) - Each release tag contains the correct version in package.json - Users consume the action via tags (@v1, @v1.0.0) This change aligns the codebase with this workflow pattern. ## Test plan - [x] Run `pnpm run build` to ensure the package builds correctly - [x] The release command now uses `gh release view` to find the current version
1 parent eaa0afe commit d3f8207

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.claude/commands/release.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Create a new release of this GitHub Action
2+
3+
Follow the instructions in PUBLISHING.md to create a new release of this project.
4+
5+
You should simply do a minor version bump. e.g. if the current release is v1.0.0, the next release should be v1.1.0.
6+
7+
To identify the current release, use the GitHub CLI to check the latest release:
8+
```bash
9+
gh release view --json tagName --jq .tagName
10+
```
11+
12+
If no releases exist yet, the first release should be v1.0.0.
13+
14+
IF YOU CANNOT IDENTIFY THE CURRENT RELEASE, THEN YOU SHOULD ABORT.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "action-onlyrobots",
3-
"version": "1.0.0",
3+
"version": "0.0.0",
44
"description": "GitHub Action to ensure code is written by AI agents, not humans",
55
"main": "dist/index.js",
66
"bin": {

0 commit comments

Comments
 (0)