@eclipse-docks/cli 0.7.130 → 0.7.132
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/README.md +3 -0
- package/package.json +1 -1
- package/src/commands/release.js +2 -0
package/README.md
CHANGED
|
@@ -23,6 +23,9 @@ to `origin` first. The tag message body becomes the GitHub Release notes.
|
|
|
23
23
|
Wire release in CI with [`.github/workflows/app-release.yml`](../../.github/workflows/app-release.yml):
|
|
24
24
|
downstream apps usually trigger it on `v*` tag push; this monorepo waits for a green
|
|
25
25
|
**CI** run on `main` first (see [`.github/workflows/release.yml`](../../.github/workflows/release.yml)).
|
|
26
|
+
If CI fails after the tag was pushed, that workflow deletes the orphan remote tag so
|
|
27
|
+
GitHub Release history has no gaps. Remove the local tag before retrying:
|
|
28
|
+
`git tag -d vX.Y.Z`.
|
|
26
29
|
|
|
27
30
|
The last version is the most recent `vX.Y.Z` tag reachable from `HEAD` (via
|
|
28
31
|
`git describe`), not the highest semver tag in the repository. That drives the
|
package/package.json
CHANGED
package/src/commands/release.js
CHANGED
|
@@ -220,6 +220,8 @@ export async function release(argv, cwd = process.cwd()) {
|
|
|
220
220
|
if (opts.push) {
|
|
221
221
|
git(['push', 'origin', version], cwd);
|
|
222
222
|
console.log(`\nPushed tag ${version}. Release runs after CI succeeds on main.`);
|
|
223
|
+
console.log('If CI fails, the remote tag is removed automatically; delete your local tag before retrying:');
|
|
224
|
+
console.log(` git tag -d ${version}`);
|
|
223
225
|
} else {
|
|
224
226
|
console.log(`\nCreated annotated tag ${version}. Push your branch and tag to trigger the release:`);
|
|
225
227
|
const branch = currentBranch(cwd);
|