Skip to content

Merge pull request #589 from bervProject/dependabot/npm_and_yarn/type… #1296

Merge pull request #589 from bervProject/dependabot/npm_and_yarn/type…

Merge pull request #589 from bervProject/dependabot/npm_and_yarn/type… #1296

Workflow file for this run

name: Node CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: install
run: yarn --frozen-lockfile
- name: Typecheck
run: yarn typecheck
- name: Build
run: |
yarn build
cp CNAME build/CNAME
env:
CI: true
- name: Deploy 🚀
if: ${{ github.event_name == 'push' && matrix.node-version == '18.x'}}
uses: JamesIves/[email protected]
with:
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch