From 71716e63d09427c7f8bc3bc4addabee5afa88a8e Mon Sep 17 00:00:00 2001 From: mahmoudabdalkarim Date: Sun, 17 Nov 2024 15:02:47 +0200 Subject: [PATCH] Fetch and download the bundle automatically --- .github/workflows/generate-bundle.yml | 5 +++-- App.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate-bundle.yml b/.github/workflows/generate-bundle.yml index 82b5f9f..77b196b 100644 --- a/.github/workflows/generate-bundle.yml +++ b/.github/workflows/generate-bundle.yml @@ -36,8 +36,8 @@ jobs: --bundle-output dist/index.android.bundle \ --assets-dest dist/ - # Step 5: Upload the bundle to a static GitHub Release - - name: Create or Update GitHub Release + # Step 5: Upload or Replace the Release + - name: Create or Replace GitHub Release uses: ncipollo/release-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -47,3 +47,4 @@ jobs: body: "This release contains the latest JavaScript bundle for React Native." draft: false prerelease: false + replace: true # Allow replacing the release if it already exists diff --git a/App.tsx b/App.tsx index 9027ab4..c7082c9 100644 --- a/App.tsx +++ b/App.tsx @@ -77,7 +77,7 @@ function App(): React.JSX.Element { backgroundColor: isDarkMode ? Colors.black : Colors.white, }}>
- Try Release Branch App.tsx to change this + Mahmoud First Release App.tsx to change this screen and then come back to see your edits.