Skip to content

Commit

Permalink
chore: debug release message
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Nov 25, 2022
1 parent 8e19674 commit e0a4c98
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 11 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.19](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.15

## @semantic-release-monorepo/cli [2.0.18](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.18",
"version": "2.0.19",
"type": "module",
"exports": "./index.js",
"files": [
Expand All @@ -25,7 +25,7 @@
"semantic-release": "^19.x"
},
"dependencies": {
"@semantic-release-monorepo/core": "2.1.14",
"@semantic-release-monorepo/core": "2.1.15",
"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.15](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.14](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.13](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.14",
"version": "2.1.15",
"description": "Apply semantic-release's automatic publishing to a monorepo",
"type": "module",
"exports": "./esm/index.js",
Expand Down
8 changes: 3 additions & 5 deletions packages/core/src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ export function makeInlinePluginsCreator(
pluginOptions: PluginOptions,
context: AnalyzeCommitsContext,
) => {
// logContext(`analyzeCommits context:`, context)

pkg.branchName = context.branch.name
pkg.preRelease = context.branch.prerelease as string

Expand Down Expand Up @@ -196,6 +194,7 @@ export function makeInlinePluginsCreator(
(d) => `* **${d.name}:** upgraded to ${d.nextRelease!.version}`,
)
notes.push(bullets.join('\n'))
notes.push('\n')
}

debug('notes generated: %s', pkg.name)
Expand Down Expand Up @@ -385,9 +384,8 @@ export function makeInlinePluginsCreator(
lastRelease: lastReleaseMap[pkg],
nextReleases: nextReleaseMap[pkg],
}))
await makePushToGit(context.branch, releases)
// const pushToGit = await makePushToGit(context.branch, releases)
// await pushToGit({ ...context, cwd: process.cwd() })
const pushToGit = await makePushToGit(context.branch, releases)
await pushToGit({ ...context, cwd: process.cwd() })
}

debug('all released, comment issue/pr')
Expand Down
3 changes: 0 additions & 3 deletions packages/core/src/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,6 @@ function makePrepareGit(
}),
)

// eslint-disable-next-line no-console
console.log(allAssets)

const message: string =
pluginOptions.message ||
// eslint-disable-next-line no-template-curly-in-string
Expand Down

0 comments on commit e0a4c98

Please sign in to comment.