diff --git a/.github/workflows/squad-insider-publish.yml b/.github/workflows/squad-insider-publish.yml index c31399cb9..e980371f5 100644 --- a/.github/workflows/squad-insider-publish.yml +++ b/.github/workflows/squad-insider-publish.yml @@ -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}'); }