fix(workflow): Fail the build if publishing has nonzero exit code (#664)

This commit is contained in:
Rajiv Shah 2020-06-11 17:26:33 -04:00 committed by GitHub
parent 3218af63ef
commit b6797096e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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