Skip to content

Commit

Permalink
Support for bun in a few workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
robertherber committed Oct 26, 2023
1 parent 4cdf447 commit 40cf704
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/eas-build-local.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: EAS Build
name: EAS Build Local

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand Down Expand Up @@ -101,7 +101,11 @@ jobs:
with:
version: ${{ inputs.pnpm_version }}

- uses: oven-sh/setup-bun@v1
if: ${{ inputs.package_manager == 'bun' }}

- uses: actions/setup-node@v3
if: ${{ inputs.package_manager != 'bun' }}
with:
node-version-file: .nvmrc
cache: ${{ inputs.package_manager }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/eas-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ jobs:
with:
version: ${{ inputs.pnpm_version }}

- uses: oven-sh/setup-bun@v1
if: ${{ inputs.package_manager == 'bun' }}

- uses: actions/setup-node@v3
if: ${{ inputs.package_manager != 'bun' }}
with:
node-version-file: .nvmrc
cache: ${{ inputs.package_manager }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test-in-parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,16 @@ jobs:
with:
version: ${{ inputs.pnpm_version }}

- uses: oven-sh/setup-bun@v1
if: ${{ inputs.package_manager == 'bun' }}

- uses: actions/setup-node@v3
if: ${{ env.ACT }}
if: ${{ env.ACT && inputs.package_manager != 'bun' }}
with:
node-version-file: .nvmrc

- uses: actions/setup-node@v3
if: ${{ !env.ACT }}
if: ${{ !env.ACT && inputs.package_manager != 'bun' }}
with:
node-version-file: .nvmrc
cache: ${{ inputs.package_manager }}
Expand Down

0 comments on commit 40cf704

Please sign in to comment.