Skip to content

Commit

Permalink
fix: scope of collectting releases
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Nov 25, 2022
1 parent 5ffb8f9 commit 6da870c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
10 changes: 10 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## @semantic-release-monorepo/cli [2.0.16](https://github.com/bubkoo/semantic-release-monorepo/compare/@semantic-release-monorepo/[email protected]...@semantic-release-monorepo/[email protected]) (2022-11-25)





### Dependencies

* **@semantic-release-monorepo/core:** upgraded to 2.1.12

## @semantic-release-monorepo/cli [2.0.15](https://github.com/bubkoo/semantic-release-monorepo/compare/@semantic-release-monorepo/[email protected]...@semantic-release-monorepo/[email protected]) (2022-11-25)


Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@semantic-release-monorepo/cli",
"version": "2.0.15",
"version": "2.0.16",
"type": "module",
"exports": "./index.js",
"files": [
Expand All @@ -25,7 +25,7 @@
"semantic-release": "^19.x"
},
"dependencies": {
"@semantic-release-monorepo/core": "2.1.11",
"@semantic-release-monorepo/core": "2.1.12",
"lodash": "^4.17.21",
"meow": "^11.0.0"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## @semantic-release-monorepo/core [2.1.12](https://github.com/bubkoo/semantic-release-monorepo/compare/@semantic-release-monorepo/[email protected]...@semantic-release-monorepo/[email protected]) (2022-11-25)

## @semantic-release-monorepo/core [2.1.11](https://github.com/bubkoo/semantic-release-monorepo/compare/@semantic-release-monorepo/[email protected]...@semantic-release-monorepo/[email protected]) (2022-11-25)

## @semantic-release-monorepo/core [2.1.10](https://github.com/bubkoo/semantic-release-monorepo/compare/@semantic-release-monorepo/[email protected]...@semantic-release-monorepo/[email protected]) (2022-11-25)
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@semantic-release-monorepo/core",
"version": "2.1.11",
"version": "2.1.12",
"description": "Apply semantic-release's automatic publishing to a monorepo",
"type": "module",
"exports": "./esm/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export function makeInlinePluginsCreator(
srmOptions: SRMOptions,
) {
const { cwd } = context
const nextReleaseMap: { [key: string]: SemanticRelease.Release[] } = {}
const lastReleaseMap: { [key: string]: SemanticRelease.LastRelease } = {}

const createInlinePlugins = (pkg: Package) => {
const { plugins, dir, name } = pkg
const nextReleaseMap: { [key: string]: SemanticRelease.Release[] } = {}
const lastReleaseMap: { [key: string]: SemanticRelease.LastRelease } = {}

const next = () => {
pkg.status.tagged = true
Expand Down Expand Up @@ -337,7 +337,7 @@ export function makeInlinePluginsCreator(
}))
lastReleaseMap[pkg.name] = context.lastRelease

debug('published: %s', pkg.name, nextReleaseMap)
debug('published: %s', pkg.name, Object.keys(nextReleaseMap))

return releases[0]
}
Expand Down

0 comments on commit 6da870c

Please sign in to comment.