cloudron 5.11.0 → 5.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/repo-actions.js +5 -2
package/package.json
CHANGED
package/src/repo-actions.js
CHANGED
|
@@ -67,10 +67,13 @@ async function tag(version, options) {
|
|
|
67
67
|
fs.writeFileSync('CloudronManifest.json', JSON.stringify(manifest, null, 2));
|
|
68
68
|
|
|
69
69
|
// set GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL if needed
|
|
70
|
+
const branch = safe.child_process.execSync('git branch --show-current', { encoding: 'utf8' }); // master or main
|
|
71
|
+
if (safe.error) return exit('Could not determine branch name');
|
|
72
|
+
|
|
70
73
|
execSync(`git commit -a -m 'Version ${version}'`);
|
|
71
74
|
execSync(`git tag v${version} -a -m 'Version ${version}'`);
|
|
72
|
-
|
|
73
|
-
if (safe.error) return exit(`Failed to push tag and
|
|
75
|
+
execSync(`git push origin v${version} ${branch}`); // push this tag only. in CI, we might have a git cache
|
|
76
|
+
if (safe.error) return exit(`Failed to push tag v${version} and branch ${branch}: ${safe.error.message}`);
|
|
74
77
|
|
|
75
78
|
console.log('Created tag and pushed to git');
|
|
76
79
|
}
|