NPM: Publish all packages in Github Actions (#111034)
* Initial npm-publish workflow * Validate version type and version match, typecheck packages before building, set npm tag * quote GITHUB_OUTPUT * codeowners * fix syntax in release-build * only tag the latest version with latest * don't require NPM_TOKEN env var to be set if using OIDC * put comment back * tighten script * Codeowners * Use workflow_call for canaries, Rename workflow to match release-build * codeowners
This commit is contained in:
+14
@@ -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
|
||||
Reference in New Issue
Block a user