From 2fad9b25dc1f4602f2e7382a8409b945872806d9 Mon Sep 17 00:00:00 2001 From: Oscar Bazaldua <511911+oscb@users.noreply.github.com> Date: Tue, 28 Nov 2023 13:59:42 -0800 Subject: [PATCH] ci: corepack enable --- .github/workflows/ci.yml | 43 +++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c3ef067..1031eb7d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,11 +16,20 @@ jobs: needs: cancel_previous runs-on: 'ubuntu-latest' steps: + + # Workaround for corepack enable in node + # Source: (https://github.com/actions/setup-node/issues/899#issuecomment-1828798029) - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: corepack enable + - uses: actions/setup-node@v4 with: - node-version: '20' - cache: 'yarn' + node-version: 20 + cache: yarn + # End workaround + - name: Install run: yarn install --frozen-lockfile - name: Build @@ -37,10 +46,18 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + # Workaround for corepack enable in node + # Source: (https://github.com/actions/setup-node/issues/899#issuecomment-1828798029) + - uses: actions/checkout@v2 + - uses: actions/setup-node@v4 with: - node-version: '20' - cache: 'yarn' + node-version: 20 + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: yarn + # End workaround - uses: maxim-lobanov/setup-xcode@v1 with: @@ -114,10 +131,18 @@ jobs: disable-animations: false script: echo "Generated AVD snapshot for caching." - - uses: actions/setup-node@v2 + # Workaround for corepack enable in node + # Source: (https://github.com/actions/setup-node/issues/899#issuecomment-1828798029) + - uses: actions/checkout@v2 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: corepack enable + - uses: actions/setup-node@v4 with: - node-version: '20' - cache: 'yarn' + node-version: 20 + cache: yarn + # End workaround - name: Bootstrap run: yarn install && yarn example install # No need to run bootstrap here since we don't need cocoapods