Skip to content

Commit

Permalink
Fix nightlybuild date value
Browse files Browse the repository at this point in the history
Fix 0 based month so that it matches the calendar
  • Loading branch information
juliemturner committed May 6, 2022
1 parent ef1b117 commit d6ffdf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function updateV3NightlyVersion(_version: string, config: PublishSchema):
const publishRoot = resolve(packageRoot);
const packageFolders = getSubDirNames(publishRoot).filter(name => name !== "documentation");
const date = new Date();
const versionStr = `-v3nightly.${date.getFullYear()}${date.getMonth().toString().padStart(2, "0")}${date.getDate().toString().padStart(2, "0")}`;
const versionStr = `-v3nightly.${date.getFullYear()}${(date.getMonth() + 1).toString().padStart(2, "0")}${date.getDate().toString().padStart(2, "0")}`;

for (let i = 0; i < packageFolders.length; i++) {

Expand Down

0 comments on commit d6ffdf3

Please sign in to comment.