mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
ci: create publish release workflow (#9150)
* ci: create publish release workflow * test: fix tests for formatTag * ci(publish-release): fix string concat * ci: release action runs with tag as source * ci(publish-release): no longer testing --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,7 @@ export function formatTag(tag: string) {
|
||||
|
||||
if (parsed?.groups) {
|
||||
return {
|
||||
isSubpackage: typeof parsed.groups.package === 'string',
|
||||
package: parsed.groups.package ?? 'discord.js',
|
||||
semver: parsed.groups.semver,
|
||||
};
|
||||
|
||||
@@ -5,6 +5,7 @@ const tag = getInput('tag', { required: true });
|
||||
const parsed = formatTag(tag);
|
||||
|
||||
if (parsed) {
|
||||
setOutput('subpackage', parsed.isSubpackage);
|
||||
setOutput('package', parsed.package);
|
||||
setOutput('semver', parsed.semver);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user