Add .nvmrc file targeting same build version as github workflow (#16478) #153
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: "Compile Assets" | |
on: | |
push: | |
paths: | |
- "_build/templates/**" | |
pull_request: | |
paths: | |
- "_build/templates/**" | |
workflow_dispatch: | |
jobs: | |
compile-assets: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
cache: 'npm' | |
cache-dependency-path: _build/templates/default/package-lock.json | |
- name: Install NPM dependencies | |
run: cd _build/templates/default && npm install | |
- name: Build assets | |
run: cd _build/templates/default && npm run build |