We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6391523 commit b2bc6eaCopy full SHA for b2bc6ea
1 file changed
.github/workflows/release.yml
@@ -133,7 +133,15 @@ jobs:
133
- name: Publish to crates.io
134
env:
135
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
136
- run: cargo publish --no-verify
+ run: |
137
+ cargo publish --no-verify 2>&1 | tee publish_output.txt || {
138
+ if grep -q "already exists" publish_output.txt; then
139
+ echo "Version already published to crates.io, skipping"
140
+ exit 0
141
+ else
142
+ exit 1
143
+ fi
144
+ }
145
146
publish-npm:
147
name: Publish to npm
0 commit comments