The Website https://reactjs.org/ uses Gatsby with Nodejs to generate the pages.
---
distFolder: public
setup:
- name: Setup Node.js 12.x
action: actions/setup-node@v1
properties:
node-version: 12.x
prepare:
name: Prepare Project build environment
command: |
npm install --global yarn
yarn install --frozen-lockfile
build:
name: Build node project
command: yarn build
environment:
SITE_URL: ${{ steps.project.outputs.site-url }}
CI: true
distFolder: public
setup:
- name: Setup Node.js 12.x
action: actions/setup-node@v1
properties:
node-version: 12.x
prepare:
name: Prepare Project build environment
command: |
npm install --global yarn
yarn install --frozen-lockfile
build:
name: Build node project
command: yarn build
environment:
SITE_URL: ${{ steps.project.outputs.site-url }}
CI: true