diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 74d4d56..670eabe 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -9,10 +9,6 @@ runs: with: node-version-file: .nvmrc - - name: Enable Corepack - run: corepack enable - shell: bash - - name: Cache dependencies id: yarn-cache uses: actions/cache@v3 @@ -24,6 +20,13 @@ runs: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} ${{ runner.os }}-yarn- + - name: Enable Corepack + run: corepack enable + shell: bash + + - name: Prepare Yarn version + run: corepack prepare yarn@1.22.15 --activate + - name: Install dependencies if: steps.yarn-cache.outputs.cache-hit != 'true' run: | diff --git a/package.json b/package.json index 90a6881..b82a25f 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "engines": { "node": ">= 16.0.0" }, - "packageManager": "^yarn@1.22.15", + "packageManager": "yarn@1.22.15", "jest": { "preset": "react-native", "modulePathIgnorePatterns": [