Skip to content

Commit

Permalink
fix(Next > CI): Vercel deploy UI failed so this updates the Node.js v…
Browse files Browse the repository at this point in the history
…ersion
  • Loading branch information
danactive committed Jul 30, 2023
1 parent 270734f commit b1d7eb1
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: 🚀 Deploy
on:
push:
branches:
- main
pull_request: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
actions: write
contents: read

jobs:
lint:
name: ⬣ ESLint
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version-file: "next/.nvmrc"

- name: 📥 Download deps
uses: bahmutov/npm-install@v1

- name: 🔬 Lint
run: npm run lint

typecheck:
name: ʦ TypeScript
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version-file: "next/.nvmrc"

- name: 📥 Download deps
uses: bahmutov/npm-install@v1

- name: 🔎 Type check
run: npm run typecheck --if-present
4 changes: 4 additions & 0 deletions next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,9 @@
"ts-jest": "^29.1.1",
"typescript": "5.1.6"
},
"engines": {
"node": "18",
"npm": "9"
},
"license": "MIT"
}

0 comments on commit b1d7eb1

Please sign in to comment.