Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 5131e6c

Browse files
chore(artifact): Use SNAPSHOT-{YYYYMMDD} in tag
1 parent ea69994 commit 5131e6c

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

scripts/artifact_tagging.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,20 @@ if (isNarrow && readlineSync.keyInYN('Widen @uirouter/core dependency from ' + c
2323
widen = false;
2424
}
2525

26-
let tagname = `${version}-hybrid-${hybridVersion}`;
26+
const YYYYMMDD = (function() {
27+
var date = new Date();
28+
var year = date.getFullYear();
29+
30+
var month = date.getMonth() + 1;
31+
month = (month < 10 ? "0" : "") + month;
32+
33+
var day = date.getDate();
34+
day = (day < 10 ? "0" : "") + day;
35+
36+
return year + month + day;
37+
})();
38+
39+
let tagname = `SNAPSHOT-${YYYYMMDD}`;
2740
tagname += readlineSync.question(`Suffix for tag ${tagname} (optional)?`);
2841

2942
if (!readlineSync.keyInYN(`Ready to publish ${tagname} tag?`)) {
@@ -36,7 +49,7 @@ util.ensureCleanMaster('master');
3649
_exec(`git checkout -b ${tagname}-prep`);
3750

3851
pkg.dependencies['@uirouter/core'] = widenedDep;
39-
pkg.version = tagname;
52+
// pkg.version = tagname;
4053

4154
fs.writeFileSync("package.json", JSON.stringify(pkg, undefined, 2));
4255
_exec('git commit -m "Widening @uirouter/core dependency range to ' + widenedDep + '" package.json');

0 commit comments

Comments
 (0)