Skip to content

Commit 8c600ca

Browse files
authored
Merge pull request #247 from github/upgrade-actions-runners
Upgrade actions runners
2 parents 61add79 + 3273ae8 commit 8c600ca

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

.github/workflows/nodejs.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,20 @@ name: Build
33
on:
44
pull_request:
55
push:
6-
branches:
7-
- main
86

97
jobs:
108
test-node:
119
name: Test on Node.js
1210
runs-on: ubuntu-latest
1311
steps:
1412
- name: Checkout the project
15-
uses: actions/checkout@v2
16-
- name: Cache node modules
17-
uses: actions/cache@v2
13+
uses: actions/checkout@v3
14+
- name: Use Node.js 16.x (LTS)
15+
uses: actions/setup-node@v3
1816
with:
19-
path: ~/.npm
20-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
21-
restore-keys: |
22-
${{ runner.os }}-node-
23-
- name: Use Node.js 13.11.0
24-
uses: actions/setup-node@v1
25-
with:
26-
node-version: 13.11.0
27-
- name: Install dependencies
28-
run: npm i
17+
node-version: 16.x
18+
cache: 'npm'
19+
- run: npm ci
2920
- name: Lint Codebase
3021
run: npm run lint
3122
- name: Run Node.js Tests

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ jobs:
88
publish-npm:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
11+
- name: Checkout the project
12+
uses: actions/checkout@v3
13+
- name: Use Node.js 16.x (LTS)
14+
uses: actions/setup-node@v3
1315
with:
14-
node-version: 14
16+
node-version: 16.x
1517
registry-url: https://registry.npmjs.org/
1618
cache: npm
1719
- run: npm ci

0 commit comments

Comments
 (0)