Skip to content

Pins NPM Packages (#1062) #223

Pins NPM Packages (#1062)

Pins NPM Packages (#1062) #223

Workflow file for this run

name: Run Type Check
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: false
- name: Checkout LFS
run: git lfs pull
- uses: actions/setup-node@v4
with:
node-version-file: "./project/.nvmrc"
cache: "npm"
cache-dependency-path: "./project/package.json"
- name: Check NPM Cache
id: cache-check
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('./project/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install NPM Dependencies
if: steps.cache-check.outputs.cache-hit != 'true'
run: npm install
working-directory: ./project
- name: Run Type Check
run: npm run type-check
working-directory: ./project