Skip to content

Commit f253a01

Browse files
committed
feat: 升级github action
1 parent e8694fc commit f253a01

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,19 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@master
19+
uses: actions/checkout@v4
2020
- name: Cache node modules
21-
uses: actions/cache@v1
21+
uses: actions/cache@v4
2222
with:
2323
path: ~/.npm
2424
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2525
restore-keys: |
26-
${{ runner.os }}-build-${{ env.cache-name }}-
27-
${{ runner.os }}-build-
28-
${{ runner.os }}-
29-
- name: use Node.js 10
30-
uses: actions/setup-node@v1
26+
${{ runner.os }}-node-
27+
- name: use Node.js 18
28+
uses: actions/setup-node@v4
3129
with:
32-
node-version: '10.x'
30+
node-version: '18'
31+
cache: 'npm'
3332
- name: npm install
3433
run: |
3534
npm install --registry=https://registry.npmjs.org

.github/workflows/coveralls.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ jobs:
55
name: Build
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v1
9-
- name: Use Node.js 10.x
10-
uses: actions/setup-node@v1
8+
- uses: actions/checkout@v4
9+
- name: Use Node.js 18.x
10+
uses: actions/setup-node@v4
1111
with:
12-
node-version: 10.x
12+
node-version: 18.x
13+
cache: 'npm'
1314

1415
- name: npm install
1516
run: npm install --registry=https://registry.npmjs.org

0 commit comments

Comments
 (0)