Skip to content

update action checkout to v4 using node 20 #141

update action checkout to v4 using node 20

update action checkout to v4 using node 20 #141

Workflow file for this run

name: build
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install
- run: node ./scripts/getStoriesList.js
- run: pnpm eslint .
- run: pnpm flow
- run: pnpm jest
- run: pnpm build
- run: pnpm website:build
- name: Install Surge
run: npm install -g surge
- name: Deploy to Surge
run: surge ./website https://bzc-ui.surge.sh/ --token ${{secrets.SURGE}}