Skip to content

Commit 5ec3101

Browse files
authored
remove cargo package, publish without verification (#1581)
* remove cargo package, publish without verification * remove custom publish with features, --no-verify should handle it now
1 parent bb09c7c commit 5ec3101

File tree

3 files changed

+17
-118
lines changed

3 files changed

+17
-118
lines changed

.changes/config.json

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,13 @@
3030
}
3131
},
3232
"publish": [
33-
{
34-
"command": "cargo package --no-verify",
35-
"dryRunCommand": true
36-
},
3733
{
3834
"command": "echo '<details>\n<summary><em><h4>Cargo Publish</h4></em></summary>\n\n```'",
3935
"dryRunCommand": true,
4036
"pipe": true
4137
},
4238
{
43-
"command": "cargo publish",
39+
"command": "cargo publish --no-verify",
4440
"dryRunCommand": "cargo publish --dry-run",
4541
"pipe": true
4642
},
@@ -266,28 +262,7 @@
266262
},
267263
"sql": {
268264
"path": "./plugins/sql",
269-
"manager": "rust",
270-
"publish": [
271-
{
272-
"command": "cargo package --no-verify",
273-
"dryRunCommand": true
274-
},
275-
{
276-
"command": "echo '<details>\n<summary><em><h4>Cargo Publish</h4></em></summary>\n\n```'",
277-
"dryRunCommand": true,
278-
"pipe": true
279-
},
280-
{
281-
"command": "cargo publish --features sqlite",
282-
"dryRunCommand": "cargo publish --features sqlite --dry-run",
283-
"pipe": true
284-
},
285-
{
286-
"command": "echo '```\n\n</details>\n'",
287-
"dryRunCommand": true,
288-
"pipe": true
289-
}
290-
]
265+
"manager": "rust"
291266
},
292267
"sql-js": {
293268
"path": "./plugins/sql",

.github/workflows/covector-version-or-publish-v2.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

.github/workflows/covector-version-or-publish.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- v1
11+
- v2
1112

1213
permissions:
1314
# required for npm provenance
@@ -41,11 +42,6 @@ jobs:
4142
version: 9.x.x
4243
run_install: true
4344

44-
- name: install webkit2gtk and libudev for [authenticator]
45-
run: |
46-
sudo apt-get update
47-
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libudev-dev
48-
4945
- name: cargo login
5046
run: cargo login ${{ secrets.ORG_CRATES_IO_TOKEN }}
5147

@@ -54,24 +50,36 @@ jobs:
5450
git config --global user.name "${{ github.event.pusher.name }}"
5551
git config --global user.email "${{ github.event.pusher.email }}"
5652
53+
- name: Setup target dir on /mnt
54+
# This directory has a larger partition size
55+
run: |
56+
sudo mkdir /mnt/target
57+
WORKSPACE_OWNER="$(stat -c '%U:%G' "${GITHUB_WORKSPACE}")"
58+
sudo chown -R "${WORKSPACE_OWNER}" /mnt/target
59+
5760
- name: covector version or publish (publish when no change files present)
5861
uses: jbolda/covector/packages/action@covector-v0
5962
id: covector
6063
env:
64+
CARGO_TARGET_DIR: /mnt/target
6165
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
6266
with:
6367
token: ${{ secrets.GITHUB_TOKEN }}
6468
command: "version-or-publish"
6569
createRelease: true
6670
recognizeContributors: true
6771

72+
- name: Sync Cargo.lock
73+
if: steps.covector.outputs.commandRan == 'version'
74+
run: cargo tree --depth 0
75+
6876
- name: Create Pull Request With Versions Bumped
6977
id: cpr
7078
uses: tauri-apps/create-pull-request@v3
7179
if: steps.covector.outputs.commandRan == 'version'
7280
with:
73-
title: "Publish New Versions"
81+
title: "Publish New Versions (${{ github.ref_name }})"
7482
commit-message: "publish new versions"
7583
labels: "version updates"
76-
branch: "ci/release-v1"
84+
branch: "ci/release-${{ github.ref_name }}"
7785
body: ${{ steps.covector.outputs.change }}

0 commit comments

Comments
 (0)