50 lines
938 B
Bash
50 lines
938 B
Bash
#!/bin/bash
|
|
# ConventionalChange Log Wrapper Library: conv-clog
|
|
|
|
function bump {
|
|
releaseType=$(npx conventional-recommended-bump -p angular)
|
|
bumpVersion=$(pnpm version $releaseType --no-git-tag-version)
|
|
|
|
echo "Release Type: $releaseType"
|
|
echo "Bump Version: $bumpVersion"
|
|
}
|
|
|
|
|
|
function log {
|
|
ret=$(npx conventional-changelog \
|
|
--preset $PRESET \
|
|
--infile ../CHANGELOG.md \
|
|
--same-file
|
|
)
|
|
|
|
echo $ret
|
|
}
|
|
|
|
|
|
function logReset {
|
|
ret=$(npx conventional-changelog \
|
|
--preset $PRESET \
|
|
--infile ../CHANGELOG.md \
|
|
--same-file
|
|
--release-log 0
|
|
)
|
|
echo $ret
|
|
}
|
|
|
|
|
|
function logHelp {
|
|
npx conventional-changelog --help
|
|
}
|
|
|
|
# ToDo: Not in use: release-please bootstrap calls POST on git/refs api, which gitea does not support.
|
|
function preRelBootstrap {
|
|
npx release-please bootstrap \
|
|
--token=$TOKEN \
|
|
--api-url="$GIT_URL" \
|
|
--repo-url=$OWNER/$REPO \
|
|
--release-type=$TYPE \
|
|
--dry-run
|
|
}
|
|
|
|
|