Skip to content

Commit 1bc6555

Browse files
authored
move exit code to right after publish (#188)
1 parent df2cde2 commit 1bc6555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/upload-to-wasi-registry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ echo "Publishing to registry (${PROTOCOL}://${REGISTRY})..."
2828

2929

3030
output=$(warg publish release --registry ${PROTOCOL}://${REGISTRY} --name ${PKG_NAMESPACE}:${PKG_NAME} --version ${PKG_VERSION} ./compiled/${COMPONENT_FILENAME} 2>&1)
31-
warg reset --registry ${PROTOCOL}://${REGISTRY}
3231
exit_code=$?
32+
warg reset --registry ${PROTOCOL}://${REGISTRY}
3333

3434
# Check for specific error conditions in the output
3535
if [[ $exit_code -ne 0 ]]; then

0 commit comments

Comments
 (0)