Skip to content

Commit

Permalink
See if Cloudflare app does it all (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut authored Aug 25, 2024
1 parent 2a7dd80 commit 33ced02
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build

on:
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 21
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build and Lint
name: Lint

on:
push:
branches: [main]
pull_request:
branches: [main]

Expand All @@ -15,8 +13,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 21
# cache: 'pnpm'
# cache-dependency-path: 'pnpm-lock.yaml'
cache: 'pnpm'
- run: pnpm install
- run: pnpm run build
- run: pnpm run lint
3 changes: 3 additions & 0 deletions src/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ const pages = [

export const Content = () => {
const { lightClientLoaded, isLight } = useNetwork()

useEffect(() => {
isLight && lightClientLoaded && toast.success('Light client: Synced')
}, [isLight, lightClientLoaded])

console.log('==> Delegit FTW')
return (
<>
<Routes>
Expand Down

0 comments on commit 33ced02

Please sign in to comment.