Skip to content

Commit f2ddc3d

Browse files
committed
Pulled in publish file from vertexai branch
1 parent d8cc9ea commit f2ddc3d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

scripts/release/utils/publish.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,14 @@ export async function publishInCI(
7575
continue;
7676
}
7777
} catch (e) {
78-
// 404 from NPM indicates the package doesn't exist there.
79-
console.log(`Skipping pkg: ${pkg} - it has never been published to NPM.`);
80-
continue;
78+
const versionParts = version.split('-');
79+
if (versionParts[0] !== '0.0.1') {
80+
// 404 from NPM indicates the package doesn't exist there.
81+
console.log(
82+
`Skipping pkg: ${pkg} - it has never been published to NPM.`
83+
);
84+
continue;
85+
}
8186
}
8287

8388
const tag = `${pkg}@${version}`;

0 commit comments

Comments
 (0)