zx-bulk-release 2.2.9 → 2.2.10

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 CHANGED
@@ -1,3 +1,8 @@
1
+ ## [2.2.10](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.9...v2.2.10) (2023-03-24)
2
+
3
+ ### Fixes & improvements
4
+ * fix: debug point for publish step ([c4eedf9](https://github.com/semrel-extra/zx-bulk-release/commit/c4eedf9ddbe2120961ffc5f55b723cbbdc41cef8))
5
+
1
6
  ## [2.2.9](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.8...v2.2.9) (2023-03-24)
2
7
 
3
8
  ### Fixes & improvements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zx-bulk-release",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
4
4
  "description": "zx-based alternative for multi-semantic-release",
5
5
  "type": "module",
6
6
  "exports": {
@@ -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, packages) => {
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]
@@ -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
- await fs.writeJson(pkg.manifestPath, pkg.manifest, {spaces: 2})
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([