Skip to content

Commit dd400c0

Browse files
committed
Fixing comments
1 parent 7800a52 commit dd400c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/gulp/tasks/release.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ task(':publish:whoami', execTask('npm', ['whoami'], {
2828
task(':publish:logout', execTask('npm', ['logout']));
2929

3030
task(':publish', function() {
31+
const label = process.argv.slice(2)[1]; // [0] would be ':publish'
32+
const labelArg = label ? `--dist-tag ${label}` : '';
3133
const currentDir = process.cwd();
3234

3335
readdirSync(DIST_COMPONENTS_ROOT)
@@ -40,7 +42,7 @@ task(':publish', function() {
4042
}
4143

4244
process.chdir(componentPath);
43-
execSync('npm publish');
45+
execSync(`npm publish --access public ${labelArg}`);
4446
});
4547
process.chdir(currentDir);
4648
});

0 commit comments

Comments
 (0)