Skip to content

Commit 840f862

Browse files
committed
fix(release): point package and NuGet metadata at github/squad
The repo moved from bradygaster/squad to github/squad. npm rejects a --provenance publish when package.json repository.url doesn't match the source repository, so the next release would fail. - package.json (root, cli, sdk) and the SDK package generator: homepage, bugs and repository point at github/squad - Squad.Agents.AI: PackageProjectUrl, RepositoryUrl and README links - install.sh and generate-packaging.mjs default to github/squad; the WinGet DocumentUrl uses the new docs host; release links derive from GITHUB_SERVER_URL/GITHUB_REPOSITORY - test/publish-repository-identity.test.ts guards published metadata Kept: npm scope, WinGet IDs and PublisherUrl, Homebrew tap, schema $id. Closes #2406 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 7b731ec commit 840f862

19 files changed

Lines changed: 165 additions & 37 deletions
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@bradygaster/squad-cli': patch
3+
'@bradygaster/squad-sdk': patch
4+
---
5+
6+
Point published package metadata and the SDK's build and distribution defaults at the repository's new home, `github/squad`, so npm provenance publishing keeps working after the move.

‎.github/workflows/squad-agents-ai-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# short-lived (1 hour) NuGet API key via the NuGet/login@v1 action. A Trusted
66
# Publishing policy must be configured at https://www.nuget.org/account/trusted-publishing
77
# under the package owner (Squad organization) with:
8-
# Repository Owner: bradygaster
8+
# Repository Owner: github
99
# Repository: squad
1010
# Workflow File: squad-agents-ai-release.yml
1111
# Environment: (leave empty)

‎.github/workflows/squad-ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ jobs:
635635
#
636636
# EXTERNAL ACTION REQUIRED after this PR merges to close the
637637
# merge-with-failed-checks gap that allowed #1873 and #1874 to merge:
638-
# 1. https://github.com/bradygaster/squad/settings/rules/12703724
638+
# 1. https://github.com/github/squad/settings/rules/12703724
639639
# 2. Set enforcement → Active
640640
# 3. Conditions → branch patterns: refs/heads/dev AND refs/heads/main
641641
# 4. Rules → Required status checks → add:

‎.github/workflows/squad-standalone-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ jobs:
10821082
--base master \
10831083
--head "tamirdresher:${BRANCH}" \
10841084
--title "New version: ${PACKAGE_IDENTIFIER} version ${VERSION}" \
1085-
--body "Automated manifest update for [Squad ${TAG}](https://github.com/bradygaster/squad/releases/tag/${TAG}), using the release run's packaging-manifests artifact.")"
1085+
--body "Automated manifest update for [Squad ${TAG}](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/releases/tag/${TAG}), using the release run's packaging-manifests artifact.")"
10861086
pr_status="Opened"
10871087
else
10881088
pr_status="Reused"

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@
6969
"sdk"
7070
],
7171
"license": "MIT",
72-
"homepage": "https://github.com/bradygaster/squad#readme",
72+
"homepage": "https://github.com/github/squad#readme",
7373
"bugs": {
74-
"url": "https://github.com/bradygaster/squad/issues"
74+
"url": "https://github.com/github/squad/issues"
7575
},
7676
"repository": {
7777
"type": "git",
78-
"url": "https://github.com/bradygaster/squad.git"
78+
"url": "https://github.com/github/squad.git"
7979
}
8080
}

‎packages/squad-cli/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@
199199
"cli"
200200
],
201201
"license": "MIT",
202-
"homepage": "https://github.com/bradygaster/squad#readme",
202+
"homepage": "https://github.com/github/squad#readme",
203203
"bugs": {
204-
"url": "https://github.com/bradygaster/squad/issues"
204+
"url": "https://github.com/github/squad/issues"
205205
},
206206
"repository": {
207207
"type": "git",
208-
"url": "git+https://github.com/bradygaster/squad.git",
208+
"url": "git+https://github.com/github/squad.git",
209209
"directory": "packages/squad-cli"
210210
},
211211
"optionalDependencies": {

‎packages/squad-sdk/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,13 @@
280280
"sdk"
281281
],
282282
"license": "MIT",
283-
"homepage": "https://github.com/bradygaster/squad#readme",
283+
"homepage": "https://github.com/github/squad#readme",
284284
"bugs": {
285-
"url": "https://github.com/bradygaster/squad/issues"
285+
"url": "https://github.com/github/squad/issues"
286286
},
287287
"repository": {
288288
"type": "git",
289-
"url": "git+https://github.com/bradygaster/squad.git",
289+
"url": "git+https://github.com/github/squad.git",
290290
"directory": "packages/squad-sdk"
291291
}
292292
}

‎packages/squad-sdk/src/build/github-dist.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface GitHubDistConfig {
1111
}
1212

1313
const DEFAULT_CONFIG: GitHubDistConfig = {
14-
owner: 'bradygaster',
14+
owner: 'github',
1515
repo: 'squad',
1616
binaryName: 'squad',
1717
installCommandTemplate: 'npx @bradygaster/squad-cli',

‎packages/squad-sdk/src/build/npm-package.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function generatePackageJson(config: NpmPackageConfig): PackageJsonOutput
9494
: {}),
9595
engines: config.engines ? { ...config.engines } : { node: '>=20.0.0' },
9696
license: 'MIT',
97-
repository: { type: 'git', url: 'https://github.com/bradygaster/squad.git' },
97+
repository: { type: 'git', url: 'https://github.com/github/squad.git' },
9898
keywords: ['copilot', 'multi-agent', 'squad', 'sdk'],
9999
};
100100
}

‎scripts/generate-packaging.mjs‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ import { fileURLToPath } from 'node:url';
3131

3232
const REPO_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
3333

34-
const DEFAULT_REPO = 'bradygaster/squad';
34+
const DEFAULT_REPO = 'github/squad';
3535
const PACKAGE_IDENTIFIER = 'bradygaster.Squad';
36-
const HOMEPAGE = 'https://github.com/bradygaster/squad';
36+
const HOMEPAGE = 'https://github.com/github/squad';
37+
const DOCS_URL = 'https://github.github.com/squad/';
3738

3839
/** Manifest schema version. Matches what winget-pkgs currently accepts. */
3940
const WINGET_SCHEMA = '1.12.0';
@@ -309,7 +310,7 @@ Tags:
309310
ReleaseNotesUrl: https://github.com/${repo}/releases/tag/${version}
310311
Documentations:
311312
- DocumentLabel: Documentation
312-
DocumentUrl: https://bradygaster.github.io/squad/
313+
DocumentUrl: ${DOCS_URL}
313314
ManifestType: defaultLocale
314315
ManifestVersion: ${WINGET_SCHEMA}
315316
`;

0 commit comments

Comments
 (0)