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
{{ message }}
Repository navigation
Commit 0002fa8
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: pin the Coana CLI version in the source (#1628)
The pinned Coana CLI version moves from the @coana-tech/cli devDependency,
which rollup inlined at build time, to the COANA_CLI_VERSION constant in
src/constants.mts. Coana is about to stop publishing to npm, so the pin
can't stay a dependency, and the constant also has the same value in
tests and in unbuilt runs, where the inlined value was empty.
The bump-coana skill now edits the constant. Coana's release workflow has
to bump it the same way.
Copy file name to clipboardExpand all lines: .claude/skills/bump-coana/SKILL.md
+14-24Lines changed: 14 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
name: bump-coana
3
-
description: Bump @coana-tech/cli to a new version, update changelog, and create a PR. Use when user wants to upgrade Coana CLI, bump Coana version, or says "bump coana" with a version number.
3
+
description: Bump the pinned Coana CLI to a new version, update changelog, and create a PR. Use when user wants to upgrade Coana CLI, bump Coana version, or says "bump coana" with a version number.
4
4
allowed-tools: Read, Edit, Write, Bash, Glob
5
5
user-invocable: true
6
6
---
7
7
8
8
# Bump Coana CLI Version
9
9
10
-
Automates the process of upgrading the @coana-tech/cli dependency to a new version, including package.json updates, changelog entry, and PR creation.
10
+
Automates the process of upgrading the pinned Coana CLI to a new version, including the pin, changelog entry, and PR creation.
11
11
12
12
## Input
13
13
@@ -32,22 +32,21 @@ if [[ ! "$COANA_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
32
32
fi
33
33
```
34
34
35
-
### Step 2: Update package.json
35
+
### Step 2: Update the pin
36
36
37
-
1. Read `package.json` in the repository root.
38
-
2. Find the current `@coana-tech/cli` version in `devDependencies` and note it as `CURRENT_VERSION`.
39
-
3. Update `@coana-tech/cli` to the new version.
40
-
4. Write the updated `package.json`.
37
+
1. Read `src/constants.mts`.
38
+
2. Find the line `const COANA_CLI_VERSION = '<version>'` and note the version as `CURRENT_VERSION`.
39
+
3. Replace the version on that line with the new one.
41
40
42
-
🚨 **Do NOT touch the top-level `version` field.** The release workflow owns it:
41
+
🚨 **Do NOT touch `package.json`'s top-level `version` field.** The release workflow owns it:
43
42
between releases the manifest holds the last released version, and
44
43
`scripts/release/bump.mts` derives and writes the next one in-run. Hand-writing
45
44
it invents a version that never releases and breaks the next release — a manifest
46
45
already sitting on the version being released has no line for the bump to
47
46
advance.
48
47
49
48
**Values to extract**:
50
-
-`CURRENT_VERSION`: The old @coana-tech/cli version (for PR body)
49
+
-`CURRENT_VERSION`: The old Coana CLI version (for PR body)
51
50
52
51
### Step 3: Update CHANGELOG.md
53
52
@@ -87,28 +86,20 @@ if it finds one; hand-editing is what puts one there.)
87
86
- Updated the Coana CLI to v `COANA_VERSION`.
88
87
```
89
88
90
-
### Step 4: Update Lock File
91
-
92
-
```bash
93
-
pnpm install
94
-
```
95
-
96
-
This updates `pnpm-lock.yaml` with the new dependency version.
97
-
98
-
### Step 5: Create Branch and Commit
89
+
### Step 4: Create Branch and Commit
99
90
100
91
```bash
101
92
# Create branch
102
93
git checkout -b "coana-$COANA_VERSION"
103
94
104
95
# Stage changes
105
-
git add package.json CHANGELOG.md pnpm-lock.yaml
96
+
git add src/constants.mts CHANGELOG.md
106
97
107
98
# Commit (skip pre-commit hooks with -n)
108
99
git commit -n -m "upgrading coana to version $COANA_VERSION"
description: `Override the version of @coana-tech/cli used for reachability analysis. Default: ${constants.ENV.INLINED_SOCKET_CLI_COANA_TECH_CLI_VERSION}.`,
15
+
description: `Override the version of @coana-tech/cli used for reachability analysis. Default: ${COANA_CLI_VERSION}.`,
0 commit comments