build(deps-dev): bump the npm-dev-dependencies group across 1 directory with 6 updates #544
Workflow file for this run
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: Lint & build assets | |
on: | |
push: | |
branches: [ dev, production ] | |
pull_request: | |
branches: [ dev, production ] | |
jobs: | |
lint-and-build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node: [ '20' ] | |
name: Node ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
run: | | |
node -v | |
npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Build assets | |
run: npm run build --if-present |