slash-do 2.8.0 → 2.8.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/commands/do/release.md +4 -3
- package/package.json +1 -1
package/commands/do/release.md
CHANGED
|
@@ -33,9 +33,10 @@ Print the detected workflow: `Detected release flow: {source} → {target}`
|
|
|
33
33
|
## Pre-Release Checks
|
|
34
34
|
|
|
35
35
|
1. **Ensure you're on the source branch** — checkout if needed
|
|
36
|
-
2. **Pull latest** — `git pull --rebase --autostash`
|
|
37
|
-
3. **
|
|
38
|
-
4. **Run
|
|
36
|
+
2. **Pull latest source** — `git pull --rebase --autostash`
|
|
37
|
+
3. **Pull latest target** — `git fetch origin {target} && (git show-ref --verify --quiet refs/heads/{target} && git checkout {target} || git checkout -b {target} --track origin/{target}) && git pull --rebase --autostash origin {target} && git checkout {source}` — this ensures the local target branch matches `origin/{target}` before any diff or PR creation, even on a fresh clone where the target branch may only exist on the remote. Without this, the diff may be stale or include already-released changes.
|
|
38
|
+
4. **Run tests** — execute the project's test suite (per project conventions already in context, or check package.json)
|
|
39
|
+
5. **Run build** — execute the project's build command if one exists
|
|
39
40
|
|
|
40
41
|
## Determine Version and Finalize Changelog
|
|
41
42
|
|
package/package.json
CHANGED