update action checkout to v4 using node 20 #141
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 | |
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}} |