Skip to content

update build to node v20 (#145) #427

update build to node v20 (#145)

update build to node v20 (#145) #427

name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ”πŸŸπŸ₯€
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js πŸ˜‚
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install and Build 🏭
run: |
npm i
npm run pre-build
npm run build-ci
env:
LESSON_BUILDER_ENV: production
- name: Deploy πŸ“¦
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: out