Skip to content

Commit

Permalink
chore: update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Feb 6, 2020
1 parent 5a2e8e9 commit 02eabdf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,10 @@ async function publishUI() {
{
type: 'list',
name: 'tag',
message: 'How should this pre-release version be tagged in npm?',
when: () => isPrereleaseVersion(pkg.version),
message: 'How should this release version be tagged in npm?',
choices: () => execa('npm', ['view', '--json', pkg.name, 'dist-tags'])
.then(({stdout}) => {
return Object.keys(JSON.parse(stdout))
.filter(tag => tag !== 'latest')
.map(tag => {
return {
name: tag,
Expand Down

0 comments on commit 02eabdf

Please sign in to comment.