ci: fix version publish scripts (#1266)

* ci: update codecov

* ci: fix github helpers
This commit is contained in:
Artin 2022-07-05 14:50:06 +08:00 committed by GitHub
parent 7f9335508a
commit e6080cd491
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -6,11 +6,8 @@ coverage:
# allow coverage to drop by this amount and still post success
threshold: 0.5%
if_ci_failed: error
patch:
default:
target: 0%
if_ci_failed: error
only_pulls: true
patch: off # no github status notice for coverage of the PR diff.
codecov:
require_ci_to_pass: true
notify:

View File

@ -1,4 +1,4 @@
export const createVersionText = (type = 'Pre-Release', version) => {
const createVersionText = (type = 'Pre-Release', version) => {
return (
`🎉 ${type} version ` +
version +
@ -18,4 +18,6 @@ export const createVersionText = (type = 'Pre-Release', version) => {
);
};
module.exports = {};
module.exports = {
createVersionText,
};