Bump to version 0.0.38 (#267) #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |