Skip to content

Commit

Permalink
add console.logs to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Rihyx committed Apr 15, 2024
1 parent ed3e661 commit 33052f2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/update-dev-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ async function getHighestDevTag(pkgs: any[]) {
}

async function main() {
console.log(
`************************************ update-dev-versions script start! ************************************`,
);
const files = await glob(`${process.env.PWD}/packages/**/package.json`, {
ignore: '**/node_modules/**',
});
Expand All @@ -44,19 +47,13 @@ async function main() {
console.log(`highestCurrent = ${highestCurrent}`);
console.log(`newVersion = ${nextVersionNumber}`);

await execPromise(`echo highestCurrent = ${highestCurrent}`);
await execPromise(`echo nextVersionNumber = ${nextVersionNumber}`);

for (const pkg of pkgs) {
const { name } = pkg;
const { stdout } = await execPromise(`npm view ${name} dist-tags.dev`);

const current = stdout.replace(/\n$/, '');
const newVersion = current.replace(/\.\d+$/, `.${nextVersionNumber}`);

await execPromise(`echo name = ${name}`);
await execPromise(`echo newVersion = ${newVersion}`);

pkg.version = newVersion;

pkgs.forEach((p) => {
Expand Down

0 comments on commit 33052f2

Please sign in to comment.