Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
Fix #17: git tags -> git tag -l
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Walter committed Jul 19, 2019
1 parent f841a2b commit f99b322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const release = async ({ $package, ...config }) => {
const { registries = ['npm'] } = config

// Check if there is already a local tag for the new version.
const { stdout: localTag } = await execa('git', ['tags', newTag])
const { stdout: localTag } = await execa('git', ['tag', '-l', newTag])
if (localTag !== '') {
throw new Error(`Local tag for ${newTag} already exists!`)
}
Expand Down

0 comments on commit f99b322

Please sign in to comment.