Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ jobs:
uses: rust-lang/crates-io-auth-action@v1
id: auth
- name: Publish to crates.io
run: cargo publish -p feedparser-rs
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
uses: katyo/publish-crates@v2
with:
path: crates/feedparser-rs-core
registry-token: ${{ steps.auth.outputs.token }}
ignore-unpublished-changes: true

# ============================================================================
# PYPI
Expand Down Expand Up @@ -170,7 +172,7 @@ jobs:
- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
skip-existing: false
skip-existing: true
verbose: true

# ============================================================================
Expand Down Expand Up @@ -265,7 +267,13 @@ jobs:
working-directory: crates/feedparser-rs-node
run: |
echo "npm version: $(npm --version)"
npm publish --access public --ignore-scripts
npm publish --access public --ignore-scripts 2>&1 | tee /tmp/npm-publish.log || {
if grep -q "cannot publish over the previously published versions" /tmp/npm-publish.log; then
echo "Version already published, skipping"
else
exit 1
fi
}

# ============================================================================
# GITHUB RELEASE
Expand Down
Loading