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
Copy file name to clipboardExpand all lines: .github/skills/upgrade-codeql-cli-and-packs/SKILL.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,17 +69,25 @@ gh codeql set-version vX.XX.Y
69
69
codeql version # Verify installation
70
70
```
71
71
72
-
#### 1.3 Update package.json Versions
72
+
#### 1.3 Update All Version-Bearing Files
73
73
74
-
All `package.json` files must have their `version` field set to match the CLI version (without the "v" prefix):
74
+
Use the `update-release-version.sh` script to deterministically update `.codeql-version`, all `package.json` files, and all `codeql-pack.yml` files in a single command:
75
75
76
-
| File | Field to Update |
77
-
| --------------------- | --------------- |
78
-
|`package.json`|`version`|
79
-
|`client/package.json`|`version`|
80
-
|`server/package.json`|`version`|
76
+
```bash
77
+
./server/scripts/update-release-version.sh X.XX.Y
78
+
```
79
+
80
+
This updates all 22 version-bearing files. Preview changes first with `--dry-run`:
@@ -125,6 +133,8 @@ Then re-verify the `cliVersion` is compatible.
125
133
126
134
### Phase 3: Update codeql-pack.yml Files
127
135
136
+
> **Note**: The `version` field in all `codeql-pack.yml` files is already updated by the `update-release-version.sh` script in Phase 1.3. This phase focuses on updating `codeql/*-all`**dependency versions** for compatibility.
137
+
128
138
#### 3.1 Files to Update
129
139
130
140
All `codeql-pack.yml` files under `server/ql/*/tools/`:
0 commit comments