Skip to content

Support pwa in boilerplate template #53

Support pwa in boilerplate template

Support pwa in boilerplate template #53

name: Build Nextjs Boilerplate Template with Surf Frontend
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
concurrency: ci-${{ github.ref }}-${{ github.workflow }}
defaults:
run:
working-directory: ./templates/nextjs-boilerplate-template
steps:
- uses: actions/checkout@v3
# Install pnpm
- uses: pnpm/action-setup@v2
with:
version: 8.6.1
run_install: false
# Handle surf related files
- run: rm -rf ./src/entry-functions
- run: rm -rf ./src/view-functions
- run: mv ./src/components/MessageBoardWithSurf.tsx ./src/components/MessageBoard.tsx
- run: mv ./src/components/TransferAPTWithSurf.tsx ./src/components/TransferAPT.tsx
- run: mv ./src/view-functions-with-surf ./src/view-functions
# Install deps and build.
- run: pnpm install
- run: pnpm install @thalalabs/surf
- run: CI= pnpm build
# Verify that the format is correct
- run: npm run _fmt -- --check
shell: bash