mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(workflow): Fail the build if publishing has nonzero exit code (#664)
This commit is contained in:
2
.github/workflows/release-cargo.yml
vendored
2
.github/workflows/release-cargo.yml
vendored
@@ -85,7 +85,7 @@ jobs:
|
||||
run: |
|
||||
echo "# Cargo Publish" | tee -a ${{runner.workspace }}/notes.md
|
||||
echo "\`\`\`" >> ${{runner.workspace }}/notes.md
|
||||
cargo publish --no-verify 2>&1 | tee -a ${{runner.workspace }}/notes.md
|
||||
set -o pipefail && cargo publish --no-verify 2>&1 | tee -a ${{runner.workspace }}/notes.md
|
||||
echo "\`\`\`" >> ${{runner.workspace }}/notes.md
|
||||
- name: Create Release
|
||||
id: create_crate_release
|
||||
|
||||
2
.github/workflows/release-npm.yml
vendored
2
.github/workflows/release-npm.yml
vendored
@@ -68,7 +68,7 @@ jobs:
|
||||
run: |
|
||||
echo "# NPM Package Publish" | tee -a ${{runner.workspace }}/notes.md
|
||||
echo "\`\`\`" >> ${{runner.workspace }}/notes.md
|
||||
npm publish 2>&1 | tee -a ${{runner.workspace }}/notes.md
|
||||
set -o pipefail && npm publish 2>&1 | tee -a ${{runner.workspace }}/notes.md
|
||||
echo "\`\`\`" >> ${{runner.workspace }}/notes.md
|
||||
- name: Create Release
|
||||
id: create_npm_release
|
||||
|
||||
Reference in New Issue
Block a user