Skip to content

Commit

Permalink
Migrated package install scripts in CI/CD to bun
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Miller committed Oct 28, 2023
1 parent 6ff2d02 commit 5b9d8c2
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 111 deletions.
86 changes: 0 additions & 86 deletions .github/actions/bun-install/action.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/script/submit-android

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ jobs:
with:
fetch-depth: 1

- name: Setup Node.js environment
uses: actions/setup-node@v3
- name: 'Bun setup'
uses: oven-sh/setup-bun@v1
with:
node-version: 18
bun-version: latest

- name: 📥 Monorepo install
uses: ./.github/actions/bun-install
- name: 'Bun install'
run: bun install

- name: Migrate database
run: bun --filter @t4/api migrate
run: cd packages/api && bun run migrate
env:
NO_D1_WARNING: true
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
with:
fetch-depth: 1

- name: Setup Node.js environment
uses: actions/setup-node@v3
- name: 'Bun setup'
uses: oven-sh/setup-bun@v1
with:
node-version: 18
bun-version: latest

- name: 📥 Monorepo install
uses: ./.github/actions/bun-install
- name: 'Bun install'
run: bun install

- name: Build
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/expo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
with:
fetch-depth: 1

- name: Setup Node.js environment
uses: actions/setup-node@v3
- name: 'Bun setup'
uses: oven-sh/setup-bun@v1
with:
node-version: 18
bun-version: latest

- name: 📥 Monorepo install
uses: ./.github/actions/bun-install
- name: 'Bun install'
run: bun install

- name: Setup EAS
uses: expo/expo-github-action@v8
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
with:
fetch-depth: 1

- name: Setup Node.js environment
uses: actions/setup-node@v3
- name: 'Bun setup'
uses: oven-sh/setup-bun@v1
with:
node-version: 18
bun-version: latest

- name: 📥 Monorepo install
uses: ./.github/actions/bun-install
- name: 'Bun install'
run: bun install

- name: Build
run: |
Expand Down

0 comments on commit 5b9d8c2

Please sign in to comment.