chore(deps): lock file maintenance #3017
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: Node.js CI | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
types: [synchronize, opened, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
# Use same version of node for netlify and CI build | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Docusaurus cache | |
if: ${{ github.ref != 'refs/heads/develop' }} | |
uses: actions/cache@v4 | |
with: | |
path: | | |
.docusaurus | |
node_modules/.cache | |
key: ${{ runner.os }}-docusaurus-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.[jt]s', '**/*.[jt]sx') }}-${{ hashFiles('**/*.md', '**/*.mdx') }} | |
# If source files changed but packages didn't, rebuild from a prior cache. | |
restore-keys: | | |
${{ runner.os }}-docusaurus-${{ hashFiles('**/package-lock.json') }}- | |
${{ runner.os }}-docusaurus- | |
- run: npm ci | |
- name: Lint 🧶 | |
run: npm run lint | |
- name: Build 🏗️ | |
run: npm run build | |
# Build is separate deployment on develop branch | |
if: ${{ github.ref != 'refs/heads/develop' }} |