update build to node v20 (#145) #427
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 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 |