Skip to content

Commit

Permalink
make testing versions always semver
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-theriault-swi committed Nov 28, 2023
1 parent 8b1999b commit 9348ef4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const cproc = require("node:child_process")

const now = new Date()
const parts = {
year: now.getUTCFullYear().toString(),
month: now.getUTCMonth().toString(),
day: now.getUTCDate().toString(),
hours: now.getUTCHours().toString(),
minutes: now.getUTCMinutes().toString(),
year: now.getUTCFullYear(),
month: now.getUTCMonth(),
day: now.getUTCDate(),
hours: now.getUTCHours(),
minutes: now.getUTCMinutes(),
}
const version = `${parts.year}.${parts.month}.${parts.day}-t.${parts.hours}.${parts.minutes}`
const version = `${parts.year}.${parts.month}.${parts.day}-t.h${parts.hours}.m${parts.minutes}`

const setVersion = (packageJsonPath) => {
const packageJson = JSON.parse(
Expand Down

0 comments on commit 9348ef4

Please sign in to comment.