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
Add server/scripts/update-release-version.sh that deterministically
updates all 22 version-bearing files (.codeql-version, package.json
files, codeql-pack.yml files). Validates the base version (X.Y.Z)
matches the installed CodeQL CLI before updating.
Update release.yml workflow:
- Add publish_codeql_packs input to skip pack publishing
- Run update-release-version.sh to set tag version
- Move CodeQL setup before version update for CLI validation
- Use npm install (not npm ci) to sync lock file
- Improve summary output with tabular format
Update upgrade SKILL.md to reference the new script.
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