zx-bulk-release 2.2.9 → 2.2.11
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/package.json +1 -1
- package/src/main/js/analyze.js +1 -1
- package/src/main/js/git.js +2 -2
- package/src/main/js/processor.js +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [2.2.11](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.10...v2.2.11) (2023-03-25)
|
|
2
|
+
|
|
3
|
+
### Fixes & improvements
|
|
4
|
+
* perf: apply memoize to `gitRoot` ([4f3488b](https://github.com/semrel-extra/zx-bulk-release/commit/4f3488bd4a7faea756e7c5b6ad6e59bbdf81846b))
|
|
5
|
+
|
|
6
|
+
## [2.2.10](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.9...v2.2.10) (2023-03-24)
|
|
7
|
+
|
|
8
|
+
### Fixes & improvements
|
|
9
|
+
* fix: debug point for publish step ([c4eedf9](https://github.com/semrel-extra/zx-bulk-release/commit/c4eedf9ddbe2120961ffc5f55b723cbbdc41cef8))
|
|
10
|
+
|
|
1
11
|
## [2.2.9](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.8...v2.2.9) (2023-03-24)
|
|
2
12
|
|
|
3
13
|
### Fixes & improvements
|
package/package.json
CHANGED
package/src/main/js/analyze.js
CHANGED
|
@@ -4,7 +4,7 @@ import {formatTag} from './meta.js';
|
|
|
4
4
|
import {log} from './log.js'
|
|
5
5
|
import {getCommits} from './git.js'
|
|
6
6
|
|
|
7
|
-
export const analyze = async (pkg
|
|
7
|
+
export const analyze = async (pkg) => {
|
|
8
8
|
const semanticChanges = await getSemanticChanges(pkg.absPath, pkg.latest.tag?.ref)
|
|
9
9
|
const depsChanges = await updateDeps(pkg, pkg.context.packages)
|
|
10
10
|
const changes = [...semanticChanges, ...depsChanges]
|
package/src/main/js/git.js
CHANGED
|
@@ -55,10 +55,10 @@ export const pushCommit = async ({cwd, from, to, branch, origin, msg, ignoreFile
|
|
|
55
55
|
}
|
|
56
56
|
})
|
|
57
57
|
|
|
58
|
-
export const getRoot = async (cwd) => (await $.o({cwd})`git rev-parse --show-toplevel`).toString().trim()
|
|
59
|
-
|
|
60
58
|
export const getSha = async (cwd) => (await $.o({cwd})`git rev-parse HEAD`).toString().trim()
|
|
61
59
|
|
|
60
|
+
export const getRoot = memoizeBy(async (cwd) => (await $.o({cwd})`git rev-parse --show-toplevel`).toString().trim())
|
|
61
|
+
|
|
62
62
|
export const getRepo = memoizeBy(async (cwd, {basicAuth} = {}) => {
|
|
63
63
|
const originUrl = await getOrigin(cwd)
|
|
64
64
|
const [, , repoHost, repoName] = originUrl.replace(':', '/').replace(/\.git/, '').match(/.+(@|\/\/)([^/]+)\/(.+)$/) || []
|
package/src/main/js/processor.js
CHANGED
|
@@ -131,7 +131,15 @@ const build = memoizeBy(async (pkg, run = runCmd, flags = {}, self = build) => w
|
|
|
131
131
|
const publish = memoizeBy(async (pkg, run = runCmd) => within(async () => {
|
|
132
132
|
$.scope = pkg.name
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
// Debug
|
|
135
|
+
// https://www.npmjs.com/package/@packasso/preset-ts-tsc-uvu/v/0.0.0?activeTab=code
|
|
136
|
+
// https://github.com/qiwi/packasso/actions/runs/4514909191/jobs/7951564982#step:7:817
|
|
137
|
+
// https://github.com/qiwi/packasso/blob/meta/2023-3-24-packasso-preset-ts-tsc-uvu-0-21-0-f0.json
|
|
138
|
+
if (pkg.version !== pkg.manifest.version) {
|
|
139
|
+
throw new Error('package.json version not synced')
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
fs.writeJsonSync(pkg.manifestPath, pkg.manifest, {spaces: 2})
|
|
135
143
|
await pushTag(pkg)
|
|
136
144
|
|
|
137
145
|
await Promise.all([
|