Skip to content

Commit d234c63

Browse files
author
Benjamin E. Coe
authored
fix(manifest): if "." is used it should have same outputs as node (#319)
1 parent fc09300 commit d234c63

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,18 @@ async function runManifest (command) {
4545

4646
const releasesCreated = await factory.runCommand('manifest-release', manifestOpts)
4747
if (releasesCreated) {
48+
core.setOutput('release_created', true)
4849
core.setOutput('releases_created', true)
4950
for (const [path, release] of Object.entries(releasesCreated)) {
5051
if (!release) {
5152
continue
5253
}
5354
for (const [key, val] of Object.entries(release)) {
54-
core.setOutput(`${path}--${key}`, val)
55+
if (path === '.') {
56+
core.setOutput(key, val)
57+
} else {
58+
core.setOutput(`${path}--${key}`, val)
59+
}
5560
}
5661
}
5762
}

test/release-please.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ describe('release-please-action', () => {
345345
{
346346
upload_url: 'http://example.com',
347347
tag_name: 'v1.0.0'
348+
},
349+
'.': {
350+
upload_url: 'http://example.com',
351+
tag_name: 'v1.0.0'
348352
}
349353
})
350354

@@ -356,8 +360,11 @@ describe('release-please-action', () => {
356360
sinon.assert.calledOnce(manifestReleasePRStub)
357361
assert.deepStrictEqual(output, {
358362
releases_created: true,
363+
release_created: true,
359364
'path/pkgA--upload_url': 'http://example.com',
360365
'path/pkgA--tag_name': 'v1.0.0',
366+
tag_name: 'v1.0.0',
367+
upload_url: 'http://example.com',
361368
pr: 25
362369
})
363370
})

0 commit comments

Comments
 (0)