Skip to content

Commit 5b43133

Browse files
committed
chore(ci): cache deps and target lts alias
1 parent ebcbd3c commit 5b43133

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/nodejs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
uses: actions/setup-node@v3
2626
with:
2727
node-version: ${{ matrix.node-version }}
28+
cache: yarn
2829
- name: install
2930
run: yarn
3031
- name: run prettylint
@@ -47,7 +48,8 @@ jobs:
4748
- uses: actions/checkout@v2
4849
- uses: actions/setup-node@v3
4950
with:
50-
node-version: 12.x
51+
node-version: 'lts/*'
52+
cache: yarn
5153
- name: install
5254
run: yarn
5355
- name: run prettylint

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ name: Release
22
on:
33
push:
44
branches:
5+
# master and not main oon purpose
56
- master
67

78
jobs:
89
release:
910
name: release
1011
runs-on: ubuntu-latest
1112
steps:
12-
- uses: actions/checkout@master
13+
- uses: actions/checkout@v2
1314
- uses: actions/setup-node@v3
1415
with:
15-
node-version: '12.x'
16+
node-version: 'lts/*'
17+
cache: yarn
1618
- name: install
1719
run: yarn
1820
- name: run prettylint

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Installation
44

5-
```
5+
```bash
66
$ yarn add --dev jest-react-reporter
77
```
88

0 commit comments

Comments
 (0)