Skip to content

Commit

Permalink
ci: corepack enable
Browse files Browse the repository at this point in the history
  • Loading branch information
oscb committed Nov 28, 2023
1 parent 7481e49 commit 2fad9b2
Showing 1 changed file with 34 additions and 9 deletions.
43 changes: 34 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2fad9b2

Please sign in to comment.