Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Vercel deploy error related to sharp installation #140

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .github/workflows/bun_assert_lockfile.yml

This file was deleted.

22 changes: 18 additions & 4 deletions .github/workflows/turbo_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
- name: Setup pnpm
uses: moonrepo/setup-toolchain@v0
with:
# A GitHub action that sets up an environment for proto and moon.
Expand All @@ -26,8 +26,22 @@ jobs:
# See: https://github.com/moonrepo/setup-toolchain
auto-install: true

- name: Get pnpm Store
id: pnpm-cache
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
name: Setup pnpm Cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-

- name: Install
run: bun install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Build dependencies with Turbo
run: pnpm turbo build --filter='./packages/*'

- name: Build with Turbo
run: bun x turbo build
- name: Build web
run: pnpm --filter web build
17 changes: 14 additions & 3 deletions .github/workflows/turbo_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
- name: Setup pnpm
uses: moonrepo/setup-toolchain@v0
with:
# A GitHub action that sets up an environment for proto and moon.
Expand All @@ -26,8 +26,19 @@ jobs:
# See: https://github.com/moonrepo/setup-toolchain
auto-install: true

- name: Get pnpm Store
id: pnpm-cache
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
name: Setup pnpm Cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-

- name: Install
run: bun install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Lint with Turbo
run: bun x turbo lint -- --max-warnings=0
run: pnpm turbo lint -- --max-warnings=0
19 changes: 15 additions & 4 deletions .github/workflows/turbo_sb:test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
- name: Setup pnpm
uses: moonrepo/setup-toolchain@v0
with:
# A GitHub action that sets up an environment for proto and moon.
Expand All @@ -26,11 +26,22 @@ jobs:
# See: https://github.com/moonrepo/setup-toolchain
auto-install: true

- name: Get pnpm Store
id: pnpm-cache
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
name: Setup pnpm Cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-

- name: Install
run: bun install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Install Playwright with Dependencies
run: bun x playwright install --with-deps
run: pnpm playwright install --with-deps

- name: Test Storybook with Turbo
run: bun x turbo sb:test
run: pnpm turbo sb:test
17 changes: 14 additions & 3 deletions .github/workflows/turbo_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
- name: Setup pnpm
uses: moonrepo/setup-toolchain@v0
with:
# A GitHub action that sets up an environment for proto and moon.
Expand All @@ -26,8 +26,19 @@ jobs:
# See: https://github.com/moonrepo/setup-toolchain
auto-install: true

- name: Get pnpm Store
id: pnpm-cache
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
name: Setup pnpm Cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-

- name: Install
run: bun install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Test with Turbo
run: bun turbo test
run: pnpm turbo test
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

bun lint-staged
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
save-exact=true
engine-strict=true
auto-install-peers=true
3 changes: 2 additions & 1 deletion .prototools
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
bun = "1.0.35"
node = "18.19.1"
pnpm = "8.15.5"
14 changes: 0 additions & 14 deletions apps/api/.eslintrc.js

This file was deleted.

42 changes: 0 additions & 42 deletions apps/api/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions apps/api/.lintstagedrc.js

This file was deleted.

19 changes: 0 additions & 19 deletions apps/api/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions apps/api/bunfig.toml

This file was deleted.

30 changes: 0 additions & 30 deletions apps/api/package.json

This file was deleted.

21 changes: 0 additions & 21 deletions apps/api/src/env.ts

This file was deleted.

70 changes: 0 additions & 70 deletions apps/api/src/index.ts

This file was deleted.

Loading
Loading