We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28b6d51 commit 9dfca68Copy full SHA for 9dfca68
scripts/create-release-tag.js
@@ -35,9 +35,10 @@ async function main() {
35
const octokit = new Octokit({ auth: GITHUB_TOKEN });
36
37
const date = new Date();
38
- const baseTagName = `release-${date.getUTCFullYear()}-${
39
- date.getUTCMonth() + 1
40
- }-${date.getUTCDate()}`;
+ const yyyy = date.getUTCFullYear();
+ const mm = String(date.getUTCMonth() + 1).padStart(2, '0');
+ const dd = String(date.getUTCDate()).padStart(2, '0');
41
+ const baseTagName = `release-${yyyy}-${mm}-${dd}`;
42
43
console.log('Requesting existing tags');
44
0 commit comments