From fa5f5946df39bf53ed9ec76631ba653020ddbad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20Alvarez?= Date: Tue, 14 Jan 2025 10:23:34 +0100 Subject: [PATCH 01/11] refactor(tooling-ci): remove apps ui kit ci workflows --- .github/workflows/_vercel_deploy.yml | 19 ------- .github/workflows/apps_ui_kit_deploy.yml | 68 ------------------------ .github/workflows/hierarchy.yml | 1 - 3 files changed, 88 deletions(-) delete mode 100644 .github/workflows/apps_ui_kit_deploy.yml diff --git a/.github/workflows/_vercel_deploy.yml b/.github/workflows/_vercel_deploy.yml index ffdb8fda37f..0dd1e71390a 100644 --- a/.github/workflows/_vercel_deploy.yml +++ b/.github/workflows/_vercel_deploy.yml @@ -12,9 +12,6 @@ on: isAppsBackend: type: boolean required: true - isAppsUiKit: - type: boolean - required: true isWalletDashboard: type: boolean required: true @@ -45,22 +42,6 @@ jobs: isProd: false isStaging: true - ui-kit-preview: - name: Vercel UI Kit Preview - if: inputs.shouldDeployPreview && inputs.isAppsUiKit - uses: ./.github/workflows/apps_ui_kit_deploy.yml - secrets: inherit - with: - isProd: false - - ui-kit-prod: - name: Vercel UI Kit Production - if: github.ref_name == 'develop' - uses: ./.github/workflows/apps_ui_kit_deploy.yml - secrets: inherit - with: - isProd: true - wallet-dashboard-preview: name: Vercel Wallet Dashboard Preview if: inputs.shouldDeployPreview && inputs.isWalletDashboard diff --git a/.github/workflows/apps_ui_kit_deploy.yml b/.github/workflows/apps_ui_kit_deploy.yml deleted file mode 100644 index 3c2f4e753f5..00000000000 --- a/.github/workflows/apps_ui_kit_deploy.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: Deploy for Apps UI Kit Storybook - -env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.APPS_UI_KIT_VERCEL_PROJECT_ID }} - -on: - workflow_dispatch: - workflow_call: - inputs: - isProd: - type: boolean - required: true - -jobs: - deploy: - permissions: - contents: read - pull-requests: write - runs-on: [self-hosted] - steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 - - name: Install Nodejs - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 - with: - node-version: "20" - cache: "pnpm" - - name: Install dependencies - run: pnpm install --frozen-lockfile - - name: Setup Prod Flag - id: setup_prod_flags - run: | - if [[ "${{ inputs.isProd }}" = "true" ]]; then - echo "PROD_FLAG=--prod" >> $GITHUB_OUTPUT - echo "ENVIRONMENT=production" >> $GITHUB_OUTPUT - echo "VERCEL_OUTPUT=" >> $GITHUB_OUTPUT - else - echo "PROD_FLAG=" >> $GITHUB_OUTPUT - echo "ENVIRONMENT=preview" >> $GITHUB_OUTPUT - echo "VERCEL_OUTPUT=> vercel_output.txt" >> $GITHUB_OUTPUT - fi - - name: Install Vercel CLI - run: pnpm add --global vercel@canary - - name: Pull Vercel Environment Information - run: vercel pull --cwd ./apps/ui-kit --yes --environment=${{steps.setup_prod_flags.outputs.ENVIRONMENT}} --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts - run: vercel build ${{steps.setup_prod_flags.outputs.PROD_FLAG}} --cwd ./apps/ui-kit --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - run: vercel deploy --cwd ./apps/ui-kit ${{steps.setup_prod_flags.outputs.PROD_FLAG}} --prebuilt --token=${{ secrets.VERCEL_TOKEN }} ${{ steps.setup_prod_flags.outputs.VERCEL_OUTPUT }} - - name: Extract Deploy URL - id: deploy_url - if: ${{ inputs.isProd == false }} - run: echo "DEPLOY_URL=$(cat vercel_output.txt | awk 'END{print}')" >> $GITHUB_OUTPUT - - name: Comment on pull request - if: ${{ inputs.isProd == false }} - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const DEPLOY_URL = '${{ steps.deploy_url.outputs.DEPLOY_URL }}' - const COMMIT_SHA = '${{ github.event.pull_request.head.sha }}' - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `This pull request has been deployed to Vercel.\n\n\nLatest commit: ${COMMIT_SHA}\n\n:white_check_mark: Preview: ${DEPLOY_URL}` - }) diff --git a/.github/workflows/hierarchy.yml b/.github/workflows/hierarchy.yml index c5def7a8b1b..fbd2bbc746c 100644 --- a/.github/workflows/hierarchy.yml +++ b/.github/workflows/hierarchy.yml @@ -149,7 +149,6 @@ jobs: isExplorer: ${{ needs.diff.outputs.isExplorer == 'true' }} isTypescriptSDK: ${{ needs.diff.outputs.isTypescriptSDK == 'true' }} isAppsBackend: ${{ needs.diff.outputs.isAppsBackend == 'true' }} - isAppsUiKit: ${{ needs.diff.outputs.isAppsUiKit == 'true' }} isWalletDashboard: ${{ needs.diff.outputs.isWalletDashboard == 'true' }} ledgernano: From bc2d0d41d5bdd529db42e7025a1e8640958fd2d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20Alvarez?= Date: Tue, 14 Jan 2025 10:36:32 +0100 Subject: [PATCH 02/11] refactor(tooling-ci): remove apps apps backend ci workflows --- .github/workflows/_vercel_deploy.yml | 19 ------ .github/workflows/apps_backend_deploy.yml | 78 ----------------------- .github/workflows/hierarchy.yml | 1 - 3 files changed, 98 deletions(-) delete mode 100644 .github/workflows/apps_backend_deploy.yml diff --git a/.github/workflows/_vercel_deploy.yml b/.github/workflows/_vercel_deploy.yml index 0dd1e71390a..811622f06e4 100644 --- a/.github/workflows/_vercel_deploy.yml +++ b/.github/workflows/_vercel_deploy.yml @@ -9,9 +9,6 @@ on: isTypescriptSDK: type: boolean required: true - isAppsBackend: - type: boolean - required: true isWalletDashboard: type: boolean required: true @@ -59,19 +56,3 @@ jobs: with: isProd: false isStaging: true - - apps-backend-preview: - name: Vercel apps-backend Preview - if: inputs.shouldDeployPreview && inputs.isAppsBackend - uses: ./.github/workflows/apps_backend_deploy.yml - secrets: inherit - with: - isProd: false - - apps-backend-prod: - name: Vercel apps-backend Production - if: github.ref_name == 'develop' - uses: ./.github/workflows/apps_backend_deploy.yml - secrets: inherit - with: - isProd: true diff --git a/.github/workflows/apps_backend_deploy.yml b/.github/workflows/apps_backend_deploy.yml deleted file mode 100644 index 63c5b01a9e6..00000000000 --- a/.github/workflows/apps_backend_deploy.yml +++ /dev/null @@ -1,78 +0,0 @@ -name: Deploy for Apps Backend - -env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.APPS_BACKEND_VERCEL_PROJECT_ID }} - -on: - workflow_dispatch: - workflow_call: - inputs: - isProd: - type: boolean - required: true - -jobs: - deploy: - permissions: - contents: read - pull-requests: write - runs-on: [self-hosted] - steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 - - name: Install Nodejs - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 - with: - node-version: "20" - cache: "pnpm" - - name: Install dependencies - run: pnpm install --frozen-lockfile - - name: Setup Prod Flag - id: setup_prod_flags - run: | - if [[ "${{ inputs.isProd }}" = "true" ]]; then - echo "PROD_FLAG=--prod" >> $GITHUB_OUTPUT - echo "ENVIRONMENT=production" >> $GITHUB_OUTPUT - echo "VERCEL_OUTPUT=" >> $GITHUB_OUTPUT - else - echo "PROD_FLAG=" >> $GITHUB_OUTPUT - echo "ENVIRONMENT=preview" >> $GITHUB_OUTPUT - echo "VERCEL_OUTPUT=> vercel_output.txt" >> $GITHUB_OUTPUT - fi - - name: Turbo Cache - id: turbo-cache - uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 - with: - path: node_modules/.cache/turbo - key: turbo-${{ runner.os }}-${{ github.sha }} - restore-keys: | - turbo-${{ runner.os }}- - - name: Install Vercel CLI - run: pnpm add --global vercel@canary - - name: Pull Vercel Env variables (network configs) - run: vercel pull --yes --environment=${{steps.setup_prod_flags.outputs.ENVIRONMENT}} --token=${{ secrets.VERCEL_TOKEN }} - - name: Build the Apps Backend - run: pnpm apps-backend build - - name: Build Vercel Project Artifacts - run: vercel build ${{steps.setup_prod_flags.outputs.PROD_FLAG}} --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - run: vercel deploy ${{steps.setup_prod_flags.outputs.PROD_FLAG}} --prebuilt --token=${{ secrets.VERCEL_TOKEN }} ${{ steps.setup_prod_flags.outputs.VERCEL_OUTPUT }} - - name: Extract Deploy URL - id: deploy_url - if: ${{ inputs.isProd == false }} - run: echo "DEPLOY_URL=$(cat vercel_output.txt | awk 'END{print}')" >> $GITHUB_OUTPUT - - name: Comment on pull request - if: ${{ inputs.isProd == false }} - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const DEPLOY_URL = '${{ steps.deploy_url.outputs.DEPLOY_URL }}' - const COMMIT_SHA = '${{ github.event.pull_request.head.sha }}' - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `This pull request has been deployed to Vercel.\n\n\nLatest commit: ${COMMIT_SHA}\n\n:white_check_mark: Preview: ${DEPLOY_URL}` - }) diff --git a/.github/workflows/hierarchy.yml b/.github/workflows/hierarchy.yml index fbd2bbc746c..2f1ecb92a2a 100644 --- a/.github/workflows/hierarchy.yml +++ b/.github/workflows/hierarchy.yml @@ -148,7 +148,6 @@ jobs: shouldDeployPreview: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} isExplorer: ${{ needs.diff.outputs.isExplorer == 'true' }} isTypescriptSDK: ${{ needs.diff.outputs.isTypescriptSDK == 'true' }} - isAppsBackend: ${{ needs.diff.outputs.isAppsBackend == 'true' }} isWalletDashboard: ${{ needs.diff.outputs.isWalletDashboard == 'true' }} ledgernano: From 35221abc3042488e8d70e94e89d3704ed0f517e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20Alvarez?= Date: Tue, 14 Jan 2025 11:09:24 +0100 Subject: [PATCH 03/11] refactor(tooling-ci): update wallet dashbboard workflows to leave only manual production Co-authored-by: JCNoguera --- .github/workflows/_vercel_deploy.yml | 27 ------ .../apps_wallet_dashboard_deploy.yml | 94 ------------------- .../apps_wallet_dashboard_prod_deploy.yml | 44 +++++++++ .github/workflows/hierarchy.yml | 4 - 4 files changed, 44 insertions(+), 125 deletions(-) delete mode 100644 .github/workflows/apps_wallet_dashboard_deploy.yml create mode 100644 .github/workflows/apps_wallet_dashboard_prod_deploy.yml diff --git a/.github/workflows/_vercel_deploy.yml b/.github/workflows/_vercel_deploy.yml index 811622f06e4..cedd51d18be 100644 --- a/.github/workflows/_vercel_deploy.yml +++ b/.github/workflows/_vercel_deploy.yml @@ -6,15 +6,6 @@ on: isExplorer: type: boolean required: true - isTypescriptSDK: - type: boolean - required: true - isWalletDashboard: - type: boolean - required: true - shouldDeployPreview: - type: boolean - required: true concurrency: group: vercel-deploy-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -38,21 +29,3 @@ jobs: with: isProd: false isStaging: true - - wallet-dashboard-preview: - name: Vercel Wallet Dashboard Preview - if: inputs.shouldDeployPreview && inputs.isWalletDashboard - uses: ./.github/workflows/apps_wallet_dashboard_deploy.yml - secrets: inherit - with: - isProd: false - isStaging: false - - wallet-dashboard-staging: - name: Vercel Wallet Dashboard Staging - if: github.ref_name == 'develop' - uses: ./.github/workflows/apps_wallet_dashboard_deploy.yml - secrets: inherit - with: - isProd: false - isStaging: true diff --git a/.github/workflows/apps_wallet_dashboard_deploy.yml b/.github/workflows/apps_wallet_dashboard_deploy.yml deleted file mode 100644 index f533776b7bb..00000000000 --- a/.github/workflows/apps_wallet_dashboard_deploy.yml +++ /dev/null @@ -1,94 +0,0 @@ -name: Deploy for Wallet Dashboard - -env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.WALLET_DASHBOARD_VERCEL_PROJECT_ID }} - WALLET_DASHBOARD_VERCEL_PROJECT_STAGING_URL: ${{ secrets.WALLET_DASHBOARD_VERCEL_PROJECT_STAGING_URL }} - -on: - workflow_dispatch: - inputs: - isProd: - type: boolean - required: true - isStaging: - type: boolean - required: true - workflow_call: - inputs: - isProd: - type: boolean - required: true - isStaging: - type: boolean - required: true - -jobs: - deploy: - permissions: - contents: read - pull-requests: write - runs-on: [self-hosted] - steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 - - name: Install Nodejs - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 - with: - node-version: "20" - cache: "pnpm" - - name: Install dependencies - run: pnpm install --frozen-lockfile - - name: Setup Prod Flag - id: setup_prod_flags - run: | - if [[ "${{ inputs.isProd }}" = "true" ]]; then - echo "PROD_FLAG=--prod" >> $GITHUB_OUTPUT - echo "ENVIRONMENT=production" >> $GITHUB_OUTPUT - echo "VERCEL_OUTPUT=" >> $GITHUB_OUTPUT - else - echo "PROD_FLAG=" >> $GITHUB_OUTPUT - echo "ENVIRONMENT=preview" >> $GITHUB_OUTPUT - echo "VERCEL_OUTPUT=> vercel_output.txt" >> $GITHUB_OUTPUT - fi - - name: Turbo Cache - id: turbo-cache - uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 - with: - path: node_modules/.cache/turbo - key: turbo-${{ runner.os }}-${{ github.sha }} - restore-keys: | - turbo-${{ runner.os }}- - - name: Install Vercel CLI - run: pnpm add --global vercel@canary - - name: Pull Vercel Env variables (network configs) - run: vercel pull --yes --environment=${{steps.setup_prod_flags.outputs.ENVIRONMENT}} --token=${{ secrets.VERCEL_TOKEN }} - - name: Copy the .env file - run: cp ./.vercel/.env.${{steps.setup_prod_flags.outputs.ENVIRONMENT}}.local ./sdk/.env - - name: Build Wallet Dashboard - run: pnpm wallet-dashboard build - - name: Build Vercel Project Artifacts - run: vercel build ${{steps.setup_prod_flags.outputs.PROD_FLAG}} --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - run: vercel deploy ${{steps.setup_prod_flags.outputs.PROD_FLAG}} --prebuilt --token=${{ secrets.VERCEL_TOKEN }} ${{ steps.setup_prod_flags.outputs.VERCEL_OUTPUT }} - - name: Extract Deploy URL - id: deploy_url - if: ${{ inputs.isProd == false }} - run: echo "DEPLOY_URL=$(cat vercel_output.txt | awk 'END{print}')" >> $GITHUB_OUTPUT - - name: Alias Staging deploy - if: ${{ inputs.isStaging }} - run: vercel alias ${{ steps.deploy_url.outputs.DEPLOY_URL }} $WALLET_DASHBOARD_VERCEL_PROJECT_STAGING_URL --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ secrets.VERCEL_SCOPE }} - - name: Comment on pull request - if: ${{ inputs.isProd == false && inputs.isStaging == false }} - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const DEPLOY_URL = '${{ steps.deploy_url.outputs.DEPLOY_URL }}' - const COMMIT_SHA = '${{ github.event.pull_request.head.sha }}' - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `This pull request has been deployed to Vercel.\n\n\nLatest commit: ${COMMIT_SHA}\n\n:white_check_mark: Preview: ${DEPLOY_URL}` - }) diff --git a/.github/workflows/apps_wallet_dashboard_prod_deploy.yml b/.github/workflows/apps_wallet_dashboard_prod_deploy.yml new file mode 100644 index 00000000000..8662082ab5e --- /dev/null +++ b/.github/workflows/apps_wallet_dashboard_prod_deploy.yml @@ -0,0 +1,44 @@ +name: Production Deploy for Wallet Dashboard + +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.WALLET_DASHBOARD_VERCEL_PROJECT_ID }} + +on: workflow_dispatch + +jobs: + deploy: + permissions: + contents: read + pull-requests: write + runs-on: [self-hosted] + steps: + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 + - name: Install Nodejs + uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 + with: + node-version: "20" + cache: "pnpm" + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: Turbo Cache + id: turbo-cache + uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 + with: + path: node_modules/.cache/turbo + key: turbo-${{ runner.os }}-${{ github.sha }} + restore-keys: | + turbo-${{ runner.os }}- + - name: Install Vercel CLI + run: pnpm add --global vercel@canary + - name: Pull Vercel Env variables (network configs) + run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + - name: Copy the .env file + run: cp ./.vercel/.env.production.local ./sdk/.env + - name: Build Wallet Dashboard + run: pnpm wallet-dashboard build + - name: Build Vercel Project Artifacts + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/hierarchy.yml b/.github/workflows/hierarchy.yml index 2f1ecb92a2a..d628292f2cf 100644 --- a/.github/workflows/hierarchy.yml +++ b/.github/workflows/hierarchy.yml @@ -29,7 +29,6 @@ jobs: isTypescriptSDK: ${{ (steps.turbo.outputs.packages && contains(fromJson(steps.turbo.outputs.packages), '@iota/iota-sdk')) }} isAppsBackend: ${{ (steps.turbo.outputs.packages && contains(fromJson(steps.turbo.outputs.packages), 'apps-backend')) }} isAppsUiKit: ${{ (steps.turbo.outputs.packages && contains(fromJson(steps.turbo.outputs.packages), '@iota/apps-ui-kit')) }} - isWalletDashboard: ${{ (steps.turbo.outputs.packages && contains(fromJson(steps.turbo.outputs.packages), 'wallet-dashboard')) }} isGraphQlTransport: ${{ (steps.turbo.outputs.packages && contains(fromJson(steps.turbo.outputs.packages), '@iota/graphql-transport')) }} isLedgerjs: ${{ (steps.turbo.outputs.packages && contains(fromJson(steps.turbo.outputs.packages), '@iota/ledgerjs-hw-app-iota')) }} steps: @@ -145,10 +144,7 @@ jobs: uses: ./.github/workflows/_vercel_deploy.yml secrets: inherit with: - shouldDeployPreview: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} isExplorer: ${{ needs.diff.outputs.isExplorer == 'true' }} - isTypescriptSDK: ${{ needs.diff.outputs.isTypescriptSDK == 'true' }} - isWalletDashboard: ${{ needs.diff.outputs.isWalletDashboard == 'true' }} ledgernano: if: (!cancelled() && !failure()) && needs.diff.outputs.isLedgerjs == 'true' && github.event.pull_request.draft == false From 6f6117163639016e69457b997f4e18c6589ecb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20Alvarez?= Date: Tue, 14 Jan 2025 11:31:49 +0100 Subject: [PATCH 04/11] refactor(tooling-ci): update explorer workflows to leave only manual production Co-authored-by: JCNoguera --- .github/workflows/_vercel_deploy.yml | 31 ------ .github/workflows/apps_explorer_deploy.yml | 94 ------------------- .../workflows/apps_explorer_prod_deploy.yml | 44 +++++++++ .github/workflows/hierarchy.yml | 12 --- 4 files changed, 44 insertions(+), 137 deletions(-) delete mode 100644 .github/workflows/_vercel_deploy.yml delete mode 100644 .github/workflows/apps_explorer_deploy.yml create mode 100644 .github/workflows/apps_explorer_prod_deploy.yml diff --git a/.github/workflows/_vercel_deploy.yml b/.github/workflows/_vercel_deploy.yml deleted file mode 100644 index cedd51d18be..00000000000 --- a/.github/workflows/_vercel_deploy.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Vercel Deploys - -on: - workflow_call: - inputs: - isExplorer: - type: boolean - required: true - -concurrency: - group: vercel-deploy-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -jobs: - explorer-preview: - name: Vercel Explorer Preview - if: inputs.shouldDeployPreview && inputs.isExplorer - uses: ./.github/workflows/apps_explorer_deploy.yml - secrets: inherit - with: - isProd: false - isStaging: false - - explorer-staging: - name: Vercel Explorer Staging - if: github.ref_name == 'develop' - uses: ./.github/workflows/apps_explorer_deploy.yml - secrets: inherit - with: - isProd: false - isStaging: true diff --git a/.github/workflows/apps_explorer_deploy.yml b/.github/workflows/apps_explorer_deploy.yml deleted file mode 100644 index 0b57bb6b97c..00000000000 --- a/.github/workflows/apps_explorer_deploy.yml +++ /dev/null @@ -1,94 +0,0 @@ -name: Deploy for Explorer - -env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.EXPLORER_VERCEL_PROJECT_ID }} - EXPLORER_VERCEL_PROJECT_STAGING_URL: ${{ secrets.EXPLORER_VERCEL_PROJECT_STAGING_URL }} - -on: - workflow_dispatch: - inputs: - isProd: - type: boolean - required: true - isStaging: - type: boolean - required: true - workflow_call: - inputs: - isProd: - type: boolean - required: true - isStaging: - type: boolean - required: true - -jobs: - deploy: - permissions: - contents: read - pull-requests: write - runs-on: [self-hosted] - steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 - - name: Install Nodejs - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 - with: - node-version: "20" - cache: "pnpm" - - name: Install dependencies - run: pnpm install --frozen-lockfile - - name: Setup Prod Flag - id: setup_prod_flags - run: | - if [[ "${{ inputs.isProd }}" = "true" ]]; then - echo "PROD_FLAG=--prod" >> $GITHUB_OUTPUT - echo "ENVIRONMENT=production" >> $GITHUB_OUTPUT - echo "VERCEL_OUTPUT=" >> $GITHUB_OUTPUT - else - echo "PROD_FLAG=" >> $GITHUB_OUTPUT - echo "ENVIRONMENT=preview" >> $GITHUB_OUTPUT - echo "VERCEL_OUTPUT=> vercel_output.txt" >> $GITHUB_OUTPUT - fi - - name: Turbo Cache - id: turbo-cache - uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 - with: - path: node_modules/.cache/turbo - key: turbo-${{ runner.os }}-${{ github.sha }} - restore-keys: | - turbo-${{ runner.os }}- - - name: Install Vercel CLI - run: pnpm add --global vercel@canary - - name: Pull Vercel Env variables (network configs) - run: vercel pull --yes --environment=${{steps.setup_prod_flags.outputs.ENVIRONMENT}} --token=${{ secrets.VERCEL_TOKEN }} - - name: Copy the .env file - run: cp ./.vercel/.env.${{steps.setup_prod_flags.outputs.ENVIRONMENT}}.local ./sdk/.env - - name: Build Explorer - run: pnpm explorer build - - name: Build Vercel Project Artifacts - run: vercel build ${{steps.setup_prod_flags.outputs.PROD_FLAG}} --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - run: vercel deploy ${{steps.setup_prod_flags.outputs.PROD_FLAG}} --prebuilt --token=${{ secrets.VERCEL_TOKEN }} ${{ steps.setup_prod_flags.outputs.VERCEL_OUTPUT }} - - name: Extract Deploy URL - id: deploy_url - if: ${{ inputs.isProd == false }} - run: echo "DEPLOY_URL=$(cat vercel_output.txt | awk 'END{print}')" >> $GITHUB_OUTPUT - - name: Alias Staging deploy - if: ${{ inputs.isStaging }} - run: vercel alias ${{ steps.deploy_url.outputs.DEPLOY_URL }} $EXPLORER_VERCEL_PROJECT_STAGING_URL --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ secrets.VERCEL_SCOPE }} - - name: Comment on pull request - if: ${{ inputs.isProd == false && inputs.isStaging == false }} - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const DEPLOY_URL = '${{ steps.deploy_url.outputs.DEPLOY_URL }}' - const COMMIT_SHA = '${{ github.event.pull_request.head.sha }}' - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `This pull request has been deployed to Vercel.\n\n\nLatest commit: ${COMMIT_SHA}\n\n:white_check_mark: Preview: ${DEPLOY_URL}` - }) diff --git a/.github/workflows/apps_explorer_prod_deploy.yml b/.github/workflows/apps_explorer_prod_deploy.yml new file mode 100644 index 00000000000..a47ed8bf829 --- /dev/null +++ b/.github/workflows/apps_explorer_prod_deploy.yml @@ -0,0 +1,44 @@ +name: Production Deploy for Explorer + +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.EXPLORER_VERCEL_PROJECT_ID }} + +on: workflow_dispatch + +jobs: + deploy: + permissions: + contents: read + pull-requests: write + runs-on: [self-hosted] + steps: + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 + - name: Install Nodejs + uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 + with: + node-version: "20" + cache: "pnpm" + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: Turbo Cache + id: turbo-cache + uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 + with: + path: node_modules/.cache/turbo + key: turbo-${{ runner.os }}-${{ github.sha }} + restore-keys: | + turbo-${{ runner.os }}- + - name: Install Vercel CLI + run: pnpm add --global vercel@canary + - name: Pull Vercel Env variables (network configs) + run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + - name: Copy the .env file + run: cp ./.vercel/.env.production.local ./sdk/.env + - name: Build Explorer + run: pnpm explorer build + - name: Build Vercel Project Artifacts + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/hierarchy.yml b/.github/workflows/hierarchy.yml index d628292f2cf..05d4a42281c 100644 --- a/.github/workflows/hierarchy.yml +++ b/.github/workflows/hierarchy.yml @@ -134,18 +134,6 @@ jobs: isTypescriptSDK: ${{ needs.diff.outputs.isTypescriptSDK == 'true' }} isGraphQlTransport: ${{ needs.diff.outputs.isGraphQlTransport == 'true' }} - vercel-deploy: - if: (!cancelled() && !failure()) - needs: - - diff - - dprint-format - - license-check - - typos - uses: ./.github/workflows/_vercel_deploy.yml - secrets: inherit - with: - isExplorer: ${{ needs.diff.outputs.isExplorer == 'true' }} - ledgernano: if: (!cancelled() && !failure()) && needs.diff.outputs.isLedgerjs == 'true' && github.event.pull_request.draft == false needs: From 4316de5dedb88f90e384c7dbd73bc6474da32ae2 Mon Sep 17 00:00:00 2001 From: JCNoguera <88061365+VmMad@users.noreply.github.com> Date: Tue, 14 Jan 2025 15:16:54 +0100 Subject: [PATCH 05/11] feat: add vercel ignore build script and improve codeowners --- .github/CODEOWNERS | 1 + scripts/tooling/vercel-ignore-build.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 scripts/tooling/vercel-ignore-build.sh diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 38bb6687fd2..8412eddbc81 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -83,6 +83,7 @@ vercel.json @iotaledger/tooling /scripts/generate_files/ @muXxer /scripts/codesearch/ @muXxer /scripts/slipstream/ @muXxer +/scripts/tooling/ @iotaledger/tooling # Disable code ownership for these auto-generated files /Cargo.lock diff --git a/scripts/tooling/vercel-ignore-build.sh b/scripts/tooling/vercel-ignore-build.sh new file mode 100644 index 00000000000..722e93d7919 --- /dev/null +++ b/scripts/tooling/vercel-ignore-build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Array of branches to be ignored +EXCLUDED_BRANCHES=("changeset-release/develop") + +CURRENT_BRANCH="$VERCEL_GIT_COMMIT_REF" + +# Only check for preview deployments and not excluded branches +if [ "$VERCEL_ENV" == "preview" ] && [[ ! " ${EXCLUDED_BRANCHES[@]} " =~ " ${CURRENT_BRANCH} " ]]; then + npx turbo-ignore +else + exit 0 +fi From 1f487800dc19481e9185f1a8586fc25b800c459f Mon Sep 17 00:00:00 2001 From: JCNoguera <88061365+VmMad@users.noreply.github.com> Date: Tue, 14 Jan 2025 16:40:14 +0100 Subject: [PATCH 06/11] feat: add scripts for preview and all envs to use in vercel --- scripts/tooling/vercel-ignore-build.sh | 13 ------------- scripts/tooling/vercel/check-excluded-branches.sh | 13 +++++++++++++ scripts/tooling/vercel/ignore-build-all-envs.sh | 5 +++++ scripts/tooling/vercel/ignore-build-command.sh | 6 ++++++ scripts/tooling/vercel/ignore-build-preview.sh | 9 +++++++++ 5 files changed, 33 insertions(+), 13 deletions(-) delete mode 100644 scripts/tooling/vercel-ignore-build.sh create mode 100644 scripts/tooling/vercel/check-excluded-branches.sh create mode 100644 scripts/tooling/vercel/ignore-build-all-envs.sh create mode 100644 scripts/tooling/vercel/ignore-build-command.sh create mode 100644 scripts/tooling/vercel/ignore-build-preview.sh diff --git a/scripts/tooling/vercel-ignore-build.sh b/scripts/tooling/vercel-ignore-build.sh deleted file mode 100644 index 722e93d7919..00000000000 --- a/scripts/tooling/vercel-ignore-build.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -# Array of branches to be ignored -EXCLUDED_BRANCHES=("changeset-release/develop") - -CURRENT_BRANCH="$VERCEL_GIT_COMMIT_REF" - -# Only check for preview deployments and not excluded branches -if [ "$VERCEL_ENV" == "preview" ] && [[ ! " ${EXCLUDED_BRANCHES[@]} " =~ " ${CURRENT_BRANCH} " ]]; then - npx turbo-ignore -else - exit 0 -fi diff --git a/scripts/tooling/vercel/check-excluded-branches.sh b/scripts/tooling/vercel/check-excluded-branches.sh new file mode 100644 index 00000000000..2345d98b6bf --- /dev/null +++ b/scripts/tooling/vercel/check-excluded-branches.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Array of branches to be ignored +EXCLUDED_BRANCHES=("changeset-release/develop") + +CURRENT_BRANCH="$VERCEL_GIT_COMMIT_REF" + +if [[ ! " ${EXCLUDED_BRANCHES[@]} " =~ " ${CURRENT_BRANCH} " ]]; then + echo "✅ - Branch is not excluded." +else + echo "🛑 - Build cancelled for branch: $CURRENT_BRANCH" + exit 0 +fi diff --git a/scripts/tooling/vercel/ignore-build-all-envs.sh b/scripts/tooling/vercel/ignore-build-all-envs.sh new file mode 100644 index 00000000000..73220212294 --- /dev/null +++ b/scripts/tooling/vercel/ignore-build-all-envs.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# This script is meant to be run from the "Ignored Build Step" in Vercel. + +echo "✅ - Building for all environments." +bash scripts/tooling/vercel/ignore-build-command.sh diff --git a/scripts/tooling/vercel/ignore-build-command.sh b/scripts/tooling/vercel/ignore-build-command.sh new file mode 100644 index 00000000000..92997151104 --- /dev/null +++ b/scripts/tooling/vercel/ignore-build-command.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Check for excluded branches and exit if necessary +bash scripts/tooling/vercel/check-excluded-branches.sh + +npx turbo-ignore --fallback=HEAD^1 diff --git a/scripts/tooling/vercel/ignore-build-preview.sh b/scripts/tooling/vercel/ignore-build-preview.sh new file mode 100644 index 00000000000..723522d507a --- /dev/null +++ b/scripts/tooling/vercel/ignore-build-preview.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# This script is meant to be run from the "Ignored Build Step" in Vercel. + +if [ ! "$VERCEL_ENV" == "preview" ]; then + exit 0 +else + echo "✅ - Building for preview deployment." + bash scripts/tooling/vercel/ignore-build-command.sh +fi From 646044fdcfff834d35c5465aa6ec22b463861792 Mon Sep 17 00:00:00 2001 From: JCNoguera <88061365+VmMad@users.noreply.github.com> Date: Tue, 14 Jan 2025 17:06:18 +0100 Subject: [PATCH 07/11] feat: add scripts for necessary vercel envs --- scripts/tooling/vercel/check-excluded-branches.sh | 1 + scripts/tooling/vercel/ignore-build-all-envs.sh | 5 ----- scripts/tooling/vercel/ignore-build-command.sh | 6 ------ scripts/tooling/vercel/ignore-build-preview.sh | 9 --------- scripts/tooling/vercel/ignore-build-step-base.sh | 6 ++++++ scripts/tooling/vercel/ignore-build-step-previews.sh | 11 +++++++++++ 6 files changed, 18 insertions(+), 20 deletions(-) mode change 100644 => 100755 scripts/tooling/vercel/check-excluded-branches.sh delete mode 100644 scripts/tooling/vercel/ignore-build-all-envs.sh delete mode 100644 scripts/tooling/vercel/ignore-build-command.sh delete mode 100644 scripts/tooling/vercel/ignore-build-preview.sh create mode 100755 scripts/tooling/vercel/ignore-build-step-base.sh create mode 100755 scripts/tooling/vercel/ignore-build-step-previews.sh diff --git a/scripts/tooling/vercel/check-excluded-branches.sh b/scripts/tooling/vercel/check-excluded-branches.sh old mode 100644 new mode 100755 index 2345d98b6bf..3c930f28fa1 --- a/scripts/tooling/vercel/check-excluded-branches.sh +++ b/scripts/tooling/vercel/check-excluded-branches.sh @@ -7,6 +7,7 @@ CURRENT_BRANCH="$VERCEL_GIT_COMMIT_REF" if [[ ! " ${EXCLUDED_BRANCHES[@]} " =~ " ${CURRENT_BRANCH} " ]]; then echo "✅ - Branch is not excluded." + npx turbo-ignore --fallback=HEAD^1 else echo "🛑 - Build cancelled for branch: $CURRENT_BRANCH" exit 0 diff --git a/scripts/tooling/vercel/ignore-build-all-envs.sh b/scripts/tooling/vercel/ignore-build-all-envs.sh deleted file mode 100644 index 73220212294..00000000000 --- a/scripts/tooling/vercel/ignore-build-all-envs.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -# This script is meant to be run from the "Ignored Build Step" in Vercel. - -echo "✅ - Building for all environments." -bash scripts/tooling/vercel/ignore-build-command.sh diff --git a/scripts/tooling/vercel/ignore-build-command.sh b/scripts/tooling/vercel/ignore-build-command.sh deleted file mode 100644 index 92997151104..00000000000 --- a/scripts/tooling/vercel/ignore-build-command.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -# Check for excluded branches and exit if necessary -bash scripts/tooling/vercel/check-excluded-branches.sh - -npx turbo-ignore --fallback=HEAD^1 diff --git a/scripts/tooling/vercel/ignore-build-preview.sh b/scripts/tooling/vercel/ignore-build-preview.sh deleted file mode 100644 index 723522d507a..00000000000 --- a/scripts/tooling/vercel/ignore-build-preview.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -# This script is meant to be run from the "Ignored Build Step" in Vercel. - -if [ ! "$VERCEL_ENV" == "preview" ]; then - exit 0 -else - echo "✅ - Building for preview deployment." - bash scripts/tooling/vercel/ignore-build-command.sh -fi diff --git a/scripts/tooling/vercel/ignore-build-step-base.sh b/scripts/tooling/vercel/ignore-build-step-base.sh new file mode 100755 index 00000000000..10d6e4f82c4 --- /dev/null +++ b/scripts/tooling/vercel/ignore-build-step-base.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +cd "$(dirname "$0")" + +# Check for excluded branches and exit if necessary +bash check-excluded-branches.sh diff --git a/scripts/tooling/vercel/ignore-build-step-previews.sh b/scripts/tooling/vercel/ignore-build-step-previews.sh new file mode 100755 index 00000000000..772702439ec --- /dev/null +++ b/scripts/tooling/vercel/ignore-build-step-previews.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# This script is meant to be run from the "Ignored Build Step" in Vercel. + +cd "$(dirname "$0")" + +if [ "$VERCEL_ENV" == "preview" ]; then + bash check-excluded-branches.sh +else + echo "❌ - Not a preview deployment." + exit 0 +fi From 9dc0ca6a39b9ad3a4c4f34332133085d8b4cebab Mon Sep 17 00:00:00 2001 From: JCNoguera <88061365+VmMad@users.noreply.github.com> Date: Tue, 14 Jan 2025 17:08:55 +0100 Subject: [PATCH 08/11] chore: add missing comments --- scripts/tooling/vercel/check-excluded-branches.sh | 2 +- scripts/tooling/vercel/ignore-build-step-base.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/tooling/vercel/check-excluded-branches.sh b/scripts/tooling/vercel/check-excluded-branches.sh index 3c930f28fa1..841db39efe8 100755 --- a/scripts/tooling/vercel/check-excluded-branches.sh +++ b/scripts/tooling/vercel/check-excluded-branches.sh @@ -1,6 +1,6 @@ #!/bin/bash +# This script is meant to be run from the "Ignored Build Step" in Vercel. -# Array of branches to be ignored EXCLUDED_BRANCHES=("changeset-release/develop") CURRENT_BRANCH="$VERCEL_GIT_COMMIT_REF" diff --git a/scripts/tooling/vercel/ignore-build-step-base.sh b/scripts/tooling/vercel/ignore-build-step-base.sh index 10d6e4f82c4..c0ea4c1de81 100755 --- a/scripts/tooling/vercel/ignore-build-step-base.sh +++ b/scripts/tooling/vercel/ignore-build-step-base.sh @@ -1,4 +1,5 @@ #!/bin/bash +# This script is meant to be run from the "Ignored Build Step" in Vercel. cd "$(dirname "$0")" From 0f8dd11b36c03c89cf311d24af71e5a33dcb26d7 Mon Sep 17 00:00:00 2001 From: JCNoguera <88061365+VmMad@users.noreply.github.com> Date: Tue, 14 Jan 2025 17:21:44 +0100 Subject: [PATCH 09/11] fix: remove unnecessary branches check script --- scripts/tooling/vercel/check-excluded-branches.sh | 14 -------------- scripts/tooling/vercel/ignore-build-step-base.sh | 7 ------- .../tooling/vercel/ignore-build-step-previews.sh | 2 +- scripts/tooling/vercel/ignore-build-step.sh | 4 ++++ 4 files changed, 5 insertions(+), 22 deletions(-) delete mode 100755 scripts/tooling/vercel/check-excluded-branches.sh delete mode 100755 scripts/tooling/vercel/ignore-build-step-base.sh create mode 100755 scripts/tooling/vercel/ignore-build-step.sh diff --git a/scripts/tooling/vercel/check-excluded-branches.sh b/scripts/tooling/vercel/check-excluded-branches.sh deleted file mode 100755 index 841db39efe8..00000000000 --- a/scripts/tooling/vercel/check-excluded-branches.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -# This script is meant to be run from the "Ignored Build Step" in Vercel. - -EXCLUDED_BRANCHES=("changeset-release/develop") - -CURRENT_BRANCH="$VERCEL_GIT_COMMIT_REF" - -if [[ ! " ${EXCLUDED_BRANCHES[@]} " =~ " ${CURRENT_BRANCH} " ]]; then - echo "✅ - Branch is not excluded." - npx turbo-ignore --fallback=HEAD^1 -else - echo "🛑 - Build cancelled for branch: $CURRENT_BRANCH" - exit 0 -fi diff --git a/scripts/tooling/vercel/ignore-build-step-base.sh b/scripts/tooling/vercel/ignore-build-step-base.sh deleted file mode 100755 index c0ea4c1de81..00000000000 --- a/scripts/tooling/vercel/ignore-build-step-base.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -# This script is meant to be run from the "Ignored Build Step" in Vercel. - -cd "$(dirname "$0")" - -# Check for excluded branches and exit if necessary -bash check-excluded-branches.sh diff --git a/scripts/tooling/vercel/ignore-build-step-previews.sh b/scripts/tooling/vercel/ignore-build-step-previews.sh index 772702439ec..142724d4930 100755 --- a/scripts/tooling/vercel/ignore-build-step-previews.sh +++ b/scripts/tooling/vercel/ignore-build-step-previews.sh @@ -4,7 +4,7 @@ cd "$(dirname "$0")" if [ "$VERCEL_ENV" == "preview" ]; then - bash check-excluded-branches.sh + bash ignore-build-step-base.sh else echo "❌ - Not a preview deployment." exit 0 diff --git a/scripts/tooling/vercel/ignore-build-step.sh b/scripts/tooling/vercel/ignore-build-step.sh new file mode 100755 index 00000000000..3e5561f1430 --- /dev/null +++ b/scripts/tooling/vercel/ignore-build-step.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# This script is meant to be run from the "Ignored Build Step" in Vercel. + +npx turbo-ignore --fallback=HEAD^1 From 713c997551206ffdf3132d6058575ab6342da506 Mon Sep 17 00:00:00 2001 From: JCNoguera <88061365+VmMad@users.noreply.github.com> Date: Tue, 14 Jan 2025 17:23:34 +0100 Subject: [PATCH 10/11] fix: rename file --- .../vercel/{ignore-build-step.sh => ignore-build-step-base.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename scripts/tooling/vercel/{ignore-build-step.sh => ignore-build-step-base.sh} (100%) diff --git a/scripts/tooling/vercel/ignore-build-step.sh b/scripts/tooling/vercel/ignore-build-step-base.sh similarity index 100% rename from scripts/tooling/vercel/ignore-build-step.sh rename to scripts/tooling/vercel/ignore-build-step-base.sh From 17a521a214f455a821f04a53ab407f0537898ce0 Mon Sep 17 00:00:00 2001 From: JCNoguera <88061365+VmMad@users.noreply.github.com> Date: Tue, 14 Jan 2025 17:23:54 +0100 Subject: [PATCH 11/11] feat: add ignore brach to vercel.json --- vercel.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index e348b1cde42..0c8dd9d8a06 100644 --- a/vercel.json +++ b/vercel.json @@ -2,7 +2,8 @@ "$schema": "https://openapi.vercel.sh/vercel.json", "git": { "deploymentEnabled": { - "gh-pages": false + "gh-pages": false, + "changeset-release/develop": false } } }