Skip to content

Commit

Permalink
Fixes pkgxdev#272
Browse files Browse the repository at this point in the history
Also fixes empty changelog breaking CD.
  • Loading branch information
mxcl committed Dec 17, 2022
1 parent 230b87e commit 9e874bf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
with:
tag_name: ${{ env.TAG }}
files: artifacts/*
body_path: ${{ steps.build_changelog.outputs.changelog }}
body: ${{ steps.build_changelog.outputs.changelog }}
fail_on_unmatched_files: true

upload-binaries:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ All you need is `tea`.
 


# tea/cli 0.17.0
# tea/cli 0.17.1

Open source is a treasure trove—yet those chests are sealed with gnarly locks.
tea is the key:
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/usePantry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,4 +478,4 @@ function useMoustaches() {

function tokenizePackage(pkg: Package) {
return [{ from: "prefix", to: useCellar().keg(pkg).string }]
}
}
3 changes: 3 additions & 0 deletions src/utils/hacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export function validatePackageRequirement(input: PlainObject): PackageRequireme
}
if (!isString(constraint)) {
throw new Error(`invalid constraint: ${constraint}`)
} else if (/^\d/.test(constraint)) {
//FIXME change all pantry entries to use proper syntax
constraint = `^${constraint}`
}

constraint = new semver.Range(constraint)
Expand Down

0 comments on commit 9e874bf

Please sign in to comment.