update release-npm and validate script

This commit is contained in:
Kevin Minehart
2025-09-23 09:54:45 -05:00
parent d53bf3d740
commit 7223130454
2 changed files with 14 additions and 2 deletions
-2
View File
@@ -135,7 +135,6 @@ jobs:
tag-nightly:
name: Tag nightly release
runs-on: github-hosted-ubuntu-x64-small
needs: publish
if: inputs.version_type == 'nightly'
steps:
@@ -146,4 +145,3 @@ jobs:
# TODO: tag the given release with nightly
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ -z "${GIT_COMMIT:-}" ]]; then
echo "Error: Environment variable GIT_COMMIT is required"
exit 1
fi
if git merge-base --is-ancestor "$GIT_COMMIT" HEAD; then
echo "Commit $GIT_COMMIT is contained in HEAD"
else
echo "Error: Commit $GIT_COMMIT is not contained in HEAD"
exit 1
fi