refactor #27
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: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: 'npm' | |
- name: Install Node.js dependencies | |
run: npm install | |
- name: Build Javascript | |
env: | |
# Fix for ERR_OSSL_EVP_UNSUPPORTED error caused by Webpack | |
NODE_OPTIONS: --openssl-legacy-provider | |
run: npm run webpack-prod | |
- name: Build CSS | |
run: npm run css-prod |