Runs
Check#246
- Event
- push
- Branch
- main
- Commit
- 186ebdd
- Started
- Duration
- 13:02
Synced from GitHub
npm release checks
Took 0:03Steps
- 1Set up job, Success0:00
- 2Summarize npm release checks and enforce the result, Success0:02
- 3Complete job, Success0:00
Whole log, 8 KB
Current runner version: '2.338.2'
▸ Runner Image Provisioner
Hosted Compute Agent
Version: 20261111.635
Commit: b8a594ea514ff44cadb5342986c68b1eac6e22ed
Build Date: 2026-11-11T01:49:01Z
Worker ID: {962262a0-228e-4056-a32b-f7d339506fbc}
Region: us-east-1
Cloud: AWS
▸ Operating System
Ubuntu
26.04.1
LTS
▸ Runner Image
Image: ubuntu-26.04
Version: 20261122.9.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu26/20261122.9/images/ubuntu/Ubuntu2604-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu26%2F20261122.9
▸ GITHUB_TOKEN Permissions
Contents: read
Metadata: read
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: npm release checks
▸ Run # A reference is complete only with a numeric run ID and attempt and the URL of that run
# A reference is complete only with a numeric run ID and attempt and the URL of that run
complete() {
[[ "$1" =~ ^[1-9][0-9]*$ && "$2" =~ ^[1-9][0-9]*$ && "$3" == "https://github.com/$GITHUB_REPOSITORY/actions/runs/$1" ]]
}
# A reuse counts only from a lookup job that succeeded, because a failed job can still leave outputs behind. A
# failed lookup runs the actual checks, and their success is as good as any reuse
mode=ordinary
if [ "$REUSE_RESULT" = success ]; then
if [ "$REUSED" = true ] && complete "$RUN_ID" "$RUN_ATTEMPT" "$RUN_URL"; then
mode=reuse
elif [ "$VERSION_ONLY" = true ] && complete "$PARENT_RUN_ID" "$PARENT_RUN_ATTEMPT" "$PARENT_RUN_URL"; then
mode=version-only
fi
fi
# The wanted result of the SDK, release tooling and consumer jobs. A version-only change reuses the SDK and
# consumer checks of its parent commit and runs the release tooling checks itself
case "$mode" in
reuse) want_sdk=skipped want_release=skipped want_consumers=skipped ;;
version-only) want_sdk=skipped want_release=success want_consumers=skipped ;;
*) want_sdk=success want_release=success want_consumers=success ;;
esac
status=0
failed=""
table=""
judge() {
case "$2" in
success) word=passed ;;
failure) word=failed ;;
cancelled | skipped) word="$2" ;;
*) word="not reported" ;;
esac
table+="| $1 | $word |"$'\n'
if [ "$2" != "$3" ]; then
status=1
failed+="${failed:+, }$1"
fi
}
judge "SDK checks" "$SDK_RESULT" "$want_sdk"
judge "Release tooling checks" "$RELEASE_RESULT" "$want_release"
judge "SDK consumers on both Node versions" "$CONSUMERS_RESULT" "$want_consumers"
{
printf '## npm release checks\n\n'
if [ "$status" -ne 0 ]; then
printf 'Did not pass: %s\n\n' "$failed"
elif [ "$mode" = reuse ]; then
printf 'Passed by reuse. The npm release checks of an earlier Check run passed for identical content, so the SDK, release tooling and consumer jobs did not run again\n\nReused run: %s\n\n' "$RUN_URL"
elif [ "$mode" = version-only ]; then
printf 'Passed as a version-only change. Only release version files changed from the parent commit, whose npm release checks passed, so only the release tooling checks ran\n\nParent commit run: %s\n\n' "$PARENT_RUN_URL"
else
printf 'The SDK checks, the release tooling checks and both Node consumer versions passed\n\n'
fi
printf '| Job | Result |\n| --- | --- |\n%s\n### Next action\n\n' "$table"
if [ "$status" -eq 0 ]; then
printf 'Nothing to fix. Release preparation reads this result, not the website checks\n'
else
printf 'Open the jobs listed above, their summaries name the failing checks and how to reproduce them. Then push a fix or re-run all jobs\n'
fi
} >> "$GITHUB_STEP_SUMMARY"
exit "$status"
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
REUSE_RESULT: success
REUSED: false
RUN_ID:
RUN_ATTEMPT:
RUN_URL:
VERSION_ONLY: false
PARENT_RUN_ID:
PARENT_RUN_ATTEMPT:
PARENT_RUN_URL:
SDK_RESULT: success
RELEASE_RESULT: success
CONSUMERS_RESULT: success
Cleaning up orphan processes