Skip to content

ci: setup latest Node.js in workflows (#185) #50

ci: setup latest Node.js in workflows (#185)

ci: setup latest Node.js in workflows (#185) #50

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
build-package:
name: Build Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: latest
- name: Cache Dependencies
id: cache-npm
uses: actions/[email protected]
with:
path: node_modules
key: node-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install Dependencies
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm install
- name: Build Package
run: |
npm run build
git diff --exit-code HEAD