From c4f22b30f00211750b93fa621c587311043559c0 Mon Sep 17 00:00:00 2001 From: Tine Kondo Date: Sat, 22 Jun 2024 09:51:06 +0000 Subject: [PATCH] chore: fix `defaultBase` on `nx.json` and `nrwl/nx-set-shas`action --- .github/actions/setup/action.yml | 2 ++ .github/workflows/ci.yml | 2 ++ nx.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 9e53231d..f4b15767 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -53,3 +53,5 @@ runs: - name: Derive appropriate SHAs for base and head for `nx affected` commands uses: nrwl/nx-set-shas@v4 + with: + main-branch-name: 'develop' \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42794c56..995f9fd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,8 @@ jobs: - name: Derive appropriate SHAs for base and head for `nx affected` commands uses: nrwl/nx-set-shas@v4 + with: + main-branch-name: 'develop' - run: pnpm exec nx-cloud record -- nx format:check - run: pnpm exec nx affected -t lint test build e2e --exclude=smoke --codeCoverage diff --git a/nx.json b/nx.json index 0b7b6f4c..b515ab32 100644 --- a/nx.json +++ b/nx.json @@ -93,5 +93,5 @@ ], "sharedGlobals": ["{workspaceRoot}/.nx/workflows/**/**"] }, - "defaultBase": "origin/develop" + "defaultBase": "develop" }