From a638114e102b4910495d8abac4fcb3b54d5b5c92 Mon Sep 17 00:00:00 2001 From: Cat Chen Date: Sat, 9 Apr 2022 21:17:31 -0700 Subject: [PATCH] Set Node version to 16 --- .github/workflows/main.yml | 7 +++++-- .nvmrc | 1 + validate.ts | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59e96c6..468360c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,9 +13,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 + with: + node-version: "16" + check-latest: true - name: Install dependencies run: yarn install diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..53d838a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/gallium diff --git a/validate.ts b/validate.ts index 7ffe3ab..7a15e62 100644 --- a/validate.ts +++ b/validate.ts @@ -1,6 +1,6 @@ import Ajv, { JSONSchemaType, DefinedError } from "ajv"; import type { Opening, Job, Company, JobsData } from "./index"; -import data from "./data.json"; +import data from "./data.json" assert { type: "json" }; const openingSchema: JSONSchemaType = { type: "object",