Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/squad-insider-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ jobs:
for (const p of paths) {
const pkg = JSON.parse(fs.readFileSync(p, 'utf8'));
pkg.version = '${VERSION}';
// Pin CLI's SDK dependency to the exact insider version so npm
// resolves the prerelease SDK instead of falling back to latest stable.
if (p.includes('squad-cli') && pkg.dependencies && pkg.dependencies['@bradygaster/squad-sdk']) {
pkg.dependencies['@bradygaster/squad-sdk'] = '${VERSION}';
console.log(' pinned @bradygaster/squad-sdk dep → ' + '${VERSION}');
}
fs.writeFileSync(p, JSON.stringify(pkg, null, 2) + '\n');
console.log(p + ' → ' + '${VERSION}');
}
Expand Down
Loading