Skip to content

Next.js - Quickstart - Nightly #233

Next.js - Quickstart - Nightly

Next.js - Quickstart - Nightly #233

name: Next.js - Quickstart - Nightly
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: bitsrc/nightly:latest
env:
HOME: /home/bituser
steps:
- name: Show BVM config
run: |
bvm config
- name: Initialize a workspace
run: |
bit new hello-world-nextjs my-hello-world-nextjs --env frontend.nextjs/templates/community-starters/hello-world-nextjs
- name: Show component details
run: |
cd my-hello-world-nextjs
bit list
bit envs
bit deps get envs/my-nextjs-env
rm -f -- my-scope/hello-world-app/tsconfig.json
- name: Run the app component
run: |
cd my-hello-world-nextjs
bit run my-nextjs-app &
checkserver http://localhost:3000
- name: Preview components
run: |
cd my-hello-world-nextjs
bit start &
checkserver http://localhost:3000
- name: Collaborate
run: |
cd my-hello-world-nextjs
bit status
- name: Create a local scope, compile and export
run: |
barescope my-org.my-scope-name my-hello-world-nextjs
cd my-hello-world-nextjs
bit scope rename my-org.my-scope my-org.my-scope-name --refactor
bit link
bit compile
bit tag --message "initial tag"
bit export
continue-on-error: false