Skip to content

Commit 088bb02

Browse files
chore(artifacts): Use ES6 template string for fixing 'latest' tag
1 parent 0beab00 commit 088bb02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/artifact_tagging.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ pkg.dependencies['@uirouter/core'] = widenedDep;
7777
pkg.version += pkgver;
7878

7979
fs.writeFileSync("package.json", JSON.stringify(pkg, undefined, 2));
80-
_exec('git commit -m "Widening @uirouter/core dependency range to ' + widenedDep + '" package.json');
80+
_exec(`git commit -m "Widening @uirouter/core dependency range to ${widenedDep}" package.json`);
8181

82-
_exec('npm run package');
82+
_exec(`npm run package`);
8383

8484
if (npm) {
8585
let output = _exec(`npm dist-tag ls ${pkg.name}`).stdout;
@@ -91,8 +91,8 @@ if (npm) {
9191
throw new Error(`Could not determine value of "latest" dist-tag for ${pkg.name}`);
9292
}
9393

94-
_exec('npm publish');
95-
_exec('npm dist-tag add ${pkg.name}@${latest} latest');
94+
_exec(`npm publish`);
95+
_exec(`npm dist-tag add ${pkg.name}@${latest} latest`);
9696
}
9797

9898
if (githubtag) {

0 commit comments

Comments
 (0)