fix(ci): publish dev releases with public access for scoped package (#1715)

This commit is contained in:
Kai (Tam Nhu) Tran authored and GitHub committed 2026-08-20 12:14:14 -04:00
1 parent 95faef5960
commit ae1559aeb0
3 files changed
+16 -1

No files matched your search

@@ -60,4 +60,16 @@ describe('dev release workflow', () => {
expect(script).toContain('git commit -m "chore(release): ${VERSION}"');
expect(script).not.toContain('git commit -m "chore(release): ${VERSION} [skip ci]"');
});
test('publishes dev releases with explicit public access for scoped package', () => {
const packageJsonPath = resolvePath('../../../../package.json');
const scriptPath = resolvePath('../../../../scripts/dev-release.sh');
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
const script = fs.readFileSync(scriptPath, 'utf8');
expect(packageJson.name).toBe('@kaitranntt/ccs');
expect(packageJson.publishConfig).toEqual({ access: 'public' });
expect(script).toContain('npm publish --tag dev --access public');
});
});