-
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
c: bugSomething isn't workingSomething isn't working
Description
Pre-Checks
- Follow our Code of Conduct.
- Read the Contributing Guidelines.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a semantic-release issue and not related to a combination with another package.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
- I am willing to provide a PR.
Describe the bug
Getting an error with maintenance branch at latest.
npm install --save-dev @anolilab/multi-semantic-release@latest semantic-release@latest@anolilab/multi-semantic-release at 2.0.9
semantic-release at 25.0.2
It expects context.latestRelease.gitHead when retrieving it, but is still a promise within create-inline-plugin-creator.js at generateNotes. I did some debugging fun within generateNotes and this worked after:
let gitHead = await context.lastRelease.gitHead;
context.lastRelease.gitHead = gitHead;Logs:
braga@MacBookAir websdk3 % ./node_modules/.bin/multi-semantic-release --dry-run --debug
[3:46:35 a.m.] › ℹ msr: multi-semantic-release version: 2.0.9
[3:46:35 a.m.] › ℹ msr: semantic-release version: 25.0.2
[3:46:35 a.m.] › ℹ msr: flags: {
"deps": {
"bump": "override",
"prefix": "",
"release": "patch"
},
"debug": true,
"dryRun": true,
"firstParent": false,
"ignorePackages": [],
"ignorePrivate": true,
"sequentialInit": false,
"sequentialPrepare": true,
"silent": false,
"tagFormat": "${name}@${version}",
"dry-run": true,
"d": true,
"$0": "multi-semantic-release"
}
[3:46:35 a.m.] › 🎉 msr: Started multirelease! Loading 3 packages...
[3:46:35 a.m.] › ✔ msr: Loaded package @loginid/websdk3
[3:46:35 a.m.] › ✔ msr: Loaded package @loginid/checkout-merchant
[3:46:35 a.m.] › ✔ msr: Loaded package @loginid/checkout-wallet
[3:46:35 a.m.] › 🎉 msr: Queued 3 packages! Starting release...
[3:46:35 a.m.] [@loginid/checkout-merchant] › ℹ Running semantic-release version 25.0.2
[3:46:41 a.m.] [@loginid/checkout-merchant] › ⚠ Run automated release from branch 1.2.x on repository git@gitlab.com:loginid/software/sdks/loginid-websdk3.git in dry-run mode
[3:46:42 a.m.] [@loginid/checkout-merchant] › ✔ Allowed to push to the Git repository
[3:46:42 a.m.] [@loginid/checkout-merchant] › ℹ Start step "verifyConditions" of plugin "Inline plugin"
[3:46:42 a.m.] [@loginid/checkout-merchant] › ✔ Completed step "verifyConditions" of plugin "Inline plugin"
[3:46:42 a.m.] [@loginid/checkout-merchant] › ℹ Found git tag @loginid/checkout-merchant@1.1.1 associated with version 1.1.1 on branch 1.2.x
[3:46:42 a.m.] [@loginid/checkout-merchant] › ℹ Found 11 commits since last release
[3:46:42 a.m.] [@loginid/checkout-merchant] › ℹ Start step "analyzeCommits" of plugin "Inline plugin"
[3:46:42 a.m.] [@loginid/checkout-merchant] › ✔ Completed step "analyzeCommits" of plugin "Inline plugin"
[3:46:42 a.m.] [@loginid/checkout-merchant] › ℹ There are no relevant changes, so no new version is released.
[3:46:42 a.m.] [@loginid/checkout-wallet] › ℹ Running semantic-release version 25.0.2
[3:46:49 a.m.] [@loginid/checkout-wallet] › ⚠ Run automated release from branch 1.2.x on repository git@gitlab.com:loginid/software/sdks/loginid-websdk3.git in dry-run mode
[3:46:49 a.m.] [@loginid/checkout-wallet] › ✔ Allowed to push to the Git repository
[3:46:49 a.m.] [@loginid/checkout-wallet] › ℹ Start step "verifyConditions" of plugin "Inline plugin"
[3:46:49 a.m.] [@loginid/checkout-wallet] › ✔ Completed step "verifyConditions" of plugin "Inline plugin"
[3:46:50 a.m.] [@loginid/checkout-wallet] › ℹ Found 9 commits since last release
[3:46:50 a.m.] [@loginid/checkout-wallet] › ℹ Start step "generateNotes" of plugin "Inline plugin"
[3:46:50 a.m.] [@loginid/checkout-wallet] › ✘ Failed step "generateNotes" of plugin "Inline plugin"
[3:46:50 a.m.] [@loginid/checkout-wallet] › ✘ An error occurred while running semantic-release: TypeError: blork$check(): lastRelease: Must be alphanumeric string with size 40 or empty (received Promise {})
at blork$check (/Users/braga/LoginID/websdk3/node_modules/blork/lib/check.js:36:10)
at getCommitsFiltered (file:///Users/braga/LoginID/websdk3/node_modules/@anolilab/multi-semantic-release/lib/get-commits-filtered.js:37:5)
at generateNotes (file:///Users/braga/LoginID/websdk3/node_modules/@anolilab/multi-semantic-release/lib/create-inline-plugin-creator.js:171:37)
at validator (file:///Users/braga/LoginID/websdk3/node_modules/semantic-release/lib/plugins/normalize.js:36:30)
at file:///Users/braga/LoginID/websdk3/node_modules/semantic-release/lib/plugins/pipeline.js:38:42
at next (file:///Users/braga/LoginID/websdk3/node_modules/p-reduce/index.js:16:10)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
fileName: '/Users/braga/LoginID/websdk3/node_modules/blork/lib/check.js',
lineNumber: 36,
value: Promise { <pending> },
name: 'ValueError',
pluginName: 'Inline plugin'
}
[3:46:50 a.m.] › ✖ msr: [multi-semantic-release]: TypeError: blork$check(): lastRelease: Must be alphanumeric string with size 40 or empty (received Promise {})
at blork$check (/Users/braga/LoginID/websdk3/node_modules/blork/lib/check.js:36:10)
at getCommitsFiltered (file:///Users/braga/LoginID/websdk3/node_modules/@anolilab/multi-semantic-release/lib/get-commits-filtered.js:37:5)
at generateNotes (file:///Users/braga/LoginID/websdk3/node_modules/@anolilab/multi-semantic-release/lib/create-inline-plugin-creator.js:171:37)
at validator (file:///Users/braga/LoginID/websdk3/node_modules/semantic-release/lib/plugins/normalize.js:36:30)
at file:///Users/braga/LoginID/websdk3/node_modules/semantic-release/lib/plugins/pipeline.js:38:42
at next (file:///Users/braga/LoginID/websdk3/node_modules/p-reduce/index.js:16:10)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
fileName: '/Users/braga/LoginID/websdk3/node_modules/blork/lib/check.js',
lineNumber: 36,
value: Promise { <pending> },
name: 'ValueError',
pluginName: 'Inline plugin'
}
release.config.cjs:
module.exports = {
branches: [
'main',
{ name: 'next', channel: 'next', prerelease: true },
{ name: "1.2.x", range: "1.2.x", channel: "1.2" },
],
tagFormat: "${name}-v${version}",
plugins: []
}Minimal reproduction code
No response
Additional Context
No response
Environment Info
System:
OS: macOS 15.7.2
CPU: (4) x64 Intel(R) Core(TM) i3-1000NG4 CPU @ 1.10GHz
Memory: 44.02 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.20.0 - /usr/local/bin/node
Yarn: 1.22.21 - /usr/local/bin/yarn
npm: 11.6.2 - /Users/braga/LoginID/websdk3/node_modules/.bin/npm
Watchman: 2024.12.02.00 - /usr/local/bin/watchman
Browsers:
Chrome: 142.0.7444.176
Chrome Canary: 144.0.7530.0
Edge: 142.0.3595.80
Firefox: 140.0.4
Safari: 26.1
npmPackages:
@anolilab/multi-semantic-release: ^2.0.9 => 2.0.9Which module system do you use?
- CJS
- ESM
Used Package Manager
npm
Metadata
Metadata
Assignees
Labels
c: bugSomething isn't workingSomething isn't working