From 9c16fb33945a0a0c19ec0c7df33a6dae607b31be Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 21 Aug 2024 07:46:13 -0700 Subject: [PATCH] Fetch Github tags in the publish-release job (#46131) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46131 React native 0.75.0, 0.75.1 and 0.75.2 has been published to NPM without the latest tag, despite the tag being on the commit. When debugging why that's happened, I realized that we were not downloading the tags when checking out the repo. This change fixes that. {F1816667285} ## Changelog: [Internal] - Publish React native as latest when the latest tag is specified on git Reviewed By: cortinico Differential Revision: D61593398 fbshipit-source-id: 96bf8346207f0bd0b01f60ee09879210d12d30af --- .github/workflows/publish-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 88df7a0905b..ec2c363d93b 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -180,6 +180,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true - name: Build and Publish NPM PAckage uses: ./.github/actions/build-npm-package with: