Skip to content

Commit

Permalink
chore: Optimize Covector Config (#945)
Browse files Browse the repository at this point in the history
* use fetch:check to query the crate API instead of command

* remove cargo package
  • Loading branch information
jbolda authored Jun 30, 2024
1 parent 03c445f commit f429dbd
Showing 1 changed file with 13 additions and 24 deletions.
37 changes: 13 additions & 24 deletions .changes/config.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
{
"gitSiteUrl": "https://github.com/tauri-apps/tao/",
"timeout": 3600000,
"additionalBumpTypes": [
"housekeeping"
],
"additionalBumpTypes": ["housekeeping"],
"pkgManagers": {
"rust": {
"version": true,
"getPublishedVersion": "cargo search ${ pkg.pkg } --limit 1 | sed -nE 's/^[^\"]*\"//; s/\".*//1p'",
"getPublishedVersion": {
"use": "fetch:check",
"options": {
"url": "https://crates.io/api/v1/crates/${ pkg.pkg }/${ pkg.pkgFile.version }"
}
},
"prepublish": [
"sudo apt-get update",
"sudo apt-get install -y libgtk-3-dev libayatana-appindicator3-dev",
"cargo install cargo-audit --features=fix",
{
"command": "cargo install cargo-audit --features=fix",
"dryRunCommand": true
},
{
"command": "cargo generate-lockfile",
"dryRunCommand": true,
Expand All @@ -36,23 +40,14 @@
}
],
"publish": [
{
"command": "cargo package --allow-dirty",
"dryRunCommand": true
},
{
"command": "echo '<details>\n<summary><em><h4>Cargo Publish</h4></em></summary>\n\n```'",
"dryRunCommand": true,
"pipe": true
},
{
"command": "echo \"\\`\\`\\`\"",
"dryRunCommand": true,
"pipe": true
},
{
"command": "cargo publish --no-verify",
"dryRunCommand": "cargo publish --no-verify --dry-run --allow-dirty",
"command": "cargo publish --no-verify --allow-dirty",
"dryRunCommand": "cargo publish --no-verify --allow-dirty --dry-run",
"pipe": true
},
{
Expand All @@ -65,12 +60,6 @@
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor } -f",
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor }.${ pkgFile.versionMinor } -f",
"git push --tags -f"
],
"assets": [
{
"path": "./target/package/${ pkg.pkg }-${ pkgFile.version }.crate",
"name": "${ pkg.pkg }-${ pkgFile.version }.crate"
}
]
}
},
Expand Down

0 comments on commit f429dbd

Please sign in to comment.