chore: replace nvmrc with tool-versions and update workflow
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
parent
48b853e7ea
commit
cdef11965e
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -1,14 +1,20 @@
|
|||||||
name: Main
|
name: main
|
||||||
|
|
||||||
on: [pull_request, push]
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
# https://github.com/actions/checkout
|
- uses: actions/checkout@v4
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version-file: ".tool-versions"
|
||||||
|
cache: "npm"
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Build
|
- name: Build
|
||||||
|
1
.tool-versions
Normal file
1
.tool-versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
nodejs 20.15.1
|
Loading…
x
Reference in New Issue
Block a user