|
@@ -14,8 +14,8 @@ for (const projectName of projects) {
|
|
|
const projectDirectory = path.resolve(projectsDirectory, projectName);
|
|
const projectDirectory = path.resolve(projectsDirectory, projectName);
|
|
|
cd(projectDirectory);
|
|
cd(projectDirectory);
|
|
|
|
|
|
|
|
|
|
+ // Add all changes and commit them.
|
|
|
await $`git add -A .`;
|
|
await $`git add -A .`;
|
|
|
-
|
|
|
|
|
try {
|
|
try {
|
|
|
await $`git commit -m "version ${version} snapshot"`;
|
|
await $`git commit -m "version ${version} snapshot"`;
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
@@ -24,10 +24,14 @@ for (const projectName of projects) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // Tag the commit.
|
|
|
await $`git tag -m "v${version}" v${version}`;
|
|
await $`git tag -m "v${version}" v${version}`;
|
|
|
- await $`git push --follow-tags`;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // Push the changes on main.
|
|
|
|
|
+ await $`git push origin HEAD:main --follow-tags`;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// Update submodules on the root directory.
|
|
|
cd(rootDirectory);
|
|
cd(rootDirectory);
|
|
|
await $`git add projects`;
|
|
await $`git add projects`;
|
|
|
await $`git commit -m 'Update snapshot' --allow-empty`;
|
|
await $`git commit -m 'Update snapshot' --allow-empty`;
|