Skip to content

Commit cdef119

Browse files
committed
chore: replace nvmrc with tool-versions and update workflow
Signed-off-by: Rui Chen <[email protected]>
1 parent 48b853e commit cdef119

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/main.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
name: Main
1+
name: main
22

3-
on: [pull_request, push]
3+
on:
4+
push:
5+
pull_request:
46

57
jobs:
68
build:
7-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-24.04
810
steps:
9-
# https://github.com/actions/checkout
10-
- name: Checkout
11-
uses: actions/checkout@v4
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version-file: ".tool-versions"
16+
cache: "npm"
17+
1218
- name: Install
1319
run: npm ci
1420
- name: Build

.nvmrc

-1
This file was deleted.

.tool-versions

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 20.15.1

0 commit comments

Comments
 (0)