From b96af98e4e138adbd264dbe04a3cd8d96f1b3cb4 Mon Sep 17 00:00:00 2001 From: alduzy Date: Thu, 7 Nov 2024 11:52:38 +0100 Subject: [PATCH] replace worklfow with release-it hook --- .github/workflows/ios-podfiles-update.yml | 34 ----------------------- package.json | 5 ++++ 2 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/ios-podfiles-update.yml diff --git a/.github/workflows/ios-podfiles-update.yml b/.github/workflows/ios-podfiles-update.yml deleted file mode 100644 index a2849ea3d2..0000000000 --- a/.github/workflows/ios-podfiles-update.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Update Podfiles - -on: - push: - branches: - - main - paths: - - 'package.json' -jobs: - update_podfile: - runs-on: ubuntu-latest - timeout-minutes: 60 - concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Check for version change - run: | - VERSION_CHANGE=$(git diff ${{ github.event.before }} ${{ github.sha }} -- package.json | grep -E "^\+.*\"version\":") - echo "Version change detected: $VERSION_CHANGE" - if [ -z "$VERSION_CHANGE" ]; then - echo "No version change detected, exiting." - exit 0 - fi - - name: Use Node.js 18 - uses: actions/setup-node@v4 - with: - node-version: 18 - - name: Install CocoaPods - run: sudo gem install cocoapods - - name: Update Podfiles - run: APP_DIR=Example yarn pod-update && APP_DIR=FabricExample yarn pod-update diff --git a/package.json b/package.json index 0d88bb104c..db96fcd001 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,11 @@ "sync-architectures": "node ./scripts/codegen-sync-archs.js", "pod-update": "cd $APP_DIR/ios && pod install && cd ../.." }, + "release-it": { + "hooks": { + "after:bump": "APP_DIR=Example yarn pod-update && APP_DIR=FabricExample yarn pod-update" + } + }, "main": "lib/commonjs/index", "module": "lib/module/index", "react-native": "src/index",