chore: replace nvmrc with tool-versions and update workflow

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2024-07-17 16:01:38 -04:00
parent 48b853e7ea
commit cdef11965e
No known key found for this signature in database
GPG Key ID: 6577287BDCA70840
3 changed files with 13 additions and 7 deletions

View File

@ -1,14 +1,20 @@
name: Main
name: main
on: [pull_request, push]
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".tool-versions"
cache: "npm"
- name: Install
run: npm ci
- name: Build

1
.nvmrc
View File

@ -1 +0,0 @@
20.14.0

1
.tool-versions Normal file
View File

@ -0,0 +1 @@
nodejs 20.15.1