Print the publish output when it fails

This commit is contained in:
Matthew Phillips 2023-10-05 13:58:03 -04:00
parent 4e5cafa5d2
commit 41f93e0ccb

View file

@ -81,6 +81,7 @@ jobs:
id: publish id: publish
run: | run: |
pnpm run release --tag next--${{ steps.getSnapshotName.outputs.result }} > publish.output.txt 2>&1 pnpm run release --tag next--${{ steps.getSnapshotName.outputs.result }} > publish.output.txt 2>&1
test $? -eq 0 || cat publish.output.txt
echo ::set-output name=result::`cat publish.output.txt` echo ::set-output name=result::`cat publish.output.txt`
env: env:
# Needs access to publish to npm # Needs access to publish to npm