Skip to content

Commit 1101cba

Browse files
committed
Add debug log.
1 parent 4bedac2 commit 1101cba

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

dist/index.js

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,14 @@ async function run(): Promise<void> {
9292

9393
const nextVersion = getNextVersion(version, tags);
9494
const tagPrefix = core.getInput('tagPrefix') || '';
95+
const nextTag = tagPrefix + nextVersion;
96+
const isPr = isPreRelease(new SemVer(nextVersion));
9597
core.setOutput('nextVersion', nextVersion);
96-
core.setOutput('nextTag', tagPrefix + nextVersion);
97-
core.setOutput('isPrerelease', isPreRelease(new SemVer(nextVersion)));
98+
core.setOutput('nextTag', nextTag);
99+
core.setOutput('isPrerelease', isPr);
98100
console.log(`nextVersion: ${nextVersion}`);
101+
console.log(`nextTag: ${nextTag}`);
102+
console.log(`isPrerelease: ${isPr}`);
99103
} catch (error) {
100104
core.setFailed(error.message);
101105
}

0 commit comments

Comments
 (0)