The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix annotated publishing tags after shallow checkout (#28620)
Félix Malfait2b222ac04e33
diff --git a/.github/workflows/publish-npm-packages.yaml b/.github/workflows/publish-npm-packages.yamlindex e377fef7f0f..b63fa835711 100644--- a/.github/workflows/publish-npm-packages.yaml+++ b/.github/workflows/publish-npm-packages.yaml@@ -45,6 +45,8 @@ jobs:env:RELEASE_REF: ${{ github.ref }}run: |+ # A shallow checkout can leave the tag ref pointing to its peeled commit.+ git fetch --no-tags --depth=1 origin "+$RELEASE_REF:$RELEASE_REF"if [[ "$(git cat-file -t "$RELEASE_REF")" != tag ]]; thenecho '::error::Expected an annotated publishing tag created by infra'exit 1