Skip to content

Commit

Permalink
chore(build): also set next tag for latest releases
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Feb 12, 2018
1 parent a78aa19 commit a8726be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/deploy.js
Expand Up @@ -169,6 +169,15 @@ function runTasks(opts) {
task: () => execa('git', ['push', '--tags'], { cwd: rootDir })
}
);

if (opts.tag !== 'next' && opts.tag !== 'test') {
tasks.push(
{
title: 'Also set "next" tag on @stencil/core',
task: () => execa('npm', ['dist-tag', 'add', '@stencil/core@' + opts.version, 'next'], { cwd: rootDir })
}
);
}
}

const listr = new Listr(tasks, { showSubtasks: false });
Expand Down

0 comments on commit a8726be

Please sign in to comment.