Update recommended config #166
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: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 19 | |
# Unfortunately, npm still has a bug where 'prepare' doesn't automatically install | |
# the 'devDependencies': https://github.com/npm/cli/issues/1865 | |
# Since nighthouse has a dev-dependency on @types/node, we need to install it manually. | |
- name: Install @types/node as a workaround | |
run: npm install @types/node | |
- name: Install dependencies | |
run: npm ci | |
- name: Build project | |
run: npm run build |