Skip to content

Commit 057c486

Browse files
authored
fix(ci): update covector versioning commands (#120)
2 parents 33be68b + c6f1967 commit 057c486

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.changes/config.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
"pkgManagers": {
44
"javascript": {
55
"version": true,
6-
"getPublishedVersion": "npm view ${ pkgFile.pkg.name } version",
6+
"getPublishedVersion": {
7+
"use": "fetch:check",
8+
"options": {
9+
"url": "https://registry.npmjs.com/${ pkg.pkg }/${ pkg.pkgFile.version }"
10+
}
11+
},
712
"prepublish": ["pnpm i", "pnpm build"],
813
"publish": ["pnpm publish --access public --no-git-checks"],
914
"postversion": ["pnpm i --lockfile-only"],
@@ -15,7 +20,12 @@
1520
},
1621
"rust": {
1722
"version": true,
18-
"getPublishedVersion": "cargo search ${ pkg.pkg } --limit 1 | sed -nE 's/^[^\"]*\"//; s/\".*//1p'",
23+
"getPublishedVersion": {
24+
"use": "fetch:check",
25+
"options": {
26+
"url": "https://crates.io/api/v1/crates/${ pkg.pkg }/${ pkg.pkgFile.version }"
27+
}
28+
},
1929
"postversion": [
2030
{
2131
"command": "./scripts/generate-lock-files.sh",
@@ -24,7 +34,7 @@
2434
"pipe": false
2535
}
2636
],
27-
"publish": ["cargo publish"],
37+
"publish": ["cargo publish --no-verify --allow-dirty"],
2838
"postpublish": [
2939
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor } -f",
3040
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor }.${ pkgFile.versionMinor } -f",

0 commit comments

Comments
 (0)