zx-bulk-release 2.2.11 → 2.2.13
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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/package.json +2 -1
- package/src/main/js/git.js +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [2.2.13](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.12...v2.2.13) (2023-03-27)
|
|
2
|
+
|
|
3
|
+
### Fixes & improvements
|
|
4
|
+
* perf: republish as `bulk-release` ([7927df7](https://github.com/semrel-extra/zx-bulk-release/commit/7927df77eb5ac1898d7df1156f0ab17e42d26464))
|
|
5
|
+
|
|
6
|
+
## [2.2.12](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.11...v2.2.12) (2023-03-27)
|
|
7
|
+
|
|
8
|
+
### Fixes & improvements
|
|
9
|
+
* fix: fix git push ([5cc1d8f](https://github.com/semrel-extra/zx-bulk-release/commit/5cc1d8fb25a399a2c69e8fd990f1a6ee73011b28))
|
|
10
|
+
|
|
1
11
|
## [2.2.11](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.10...v2.2.11) (2023-03-25)
|
|
2
12
|
|
|
3
13
|
### Fixes & improvements
|
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ GH_TOKEN=ghtoken GH_USER=username NPM_TOKEN=npmtoken npx zx-bulk-release [opts]
|
|
|
40
40
|
| Flag | Description | Default |
|
|
41
41
|
|------------------------------|----------------------------------------------------------------|------------------|
|
|
42
42
|
| `--ignore` | Packages to ignore: `a, b` | |
|
|
43
|
-
| `--include-private` | Include `private` packages
|
|
43
|
+
| `--include-private` | Include `private` packages | `false` |
|
|
44
44
|
| `--concurrency` | `build/publish` threads limit | `os.cpus.length` |
|
|
45
45
|
| `--no-build` | Skip `buildCmd` invoke | |
|
|
46
46
|
| `--no-npm-fetch` | Disable npm artifacts fetching | |
|
package/package.json
CHANGED
package/src/main/js/git.js
CHANGED
|
@@ -10,8 +10,8 @@ export const fetchRepo = memoizeBy(async ({cwd: _cwd, branch, origin: _origin, b
|
|
|
10
10
|
await $`git clone --single-branch --branch ${branch} --depth 1 ${origin} .`
|
|
11
11
|
} catch (e) {
|
|
12
12
|
log({level: 'warn'})(`ref '${branch}' does not exist in ${origin}`)
|
|
13
|
-
await $`git init
|
|
14
|
-
|
|
13
|
+
await $`git init . &&
|
|
14
|
+
git remote add origin ${origin}`
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
return cwd
|
|
@@ -50,7 +50,8 @@ export const pushCommit = async ({cwd, from, to, branch, origin, msg, ignoreFile
|
|
|
50
50
|
throw e
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
await $`git
|
|
53
|
+
await $`git fetch origin ${branch} &&
|
|
54
|
+
git rebase origin/${branch}`
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
})
|