Skip to content

Commit b530b61

Browse files
authored
Upgrade supported node version (#49)
* Add node version to package.json * Update readme prereq with updated node vers * Simplify install command in readme * Update node versions in github actions * Add to changelog * Move changelog to indicate breaking changes
1 parent aefcb42 commit b530b61

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

.github/workflows/pr-checks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
- uses: actions/setup-node@v2
1212
with:
13-
node-version: 10.x
13+
node-version: 14.x
1414
cache: npm
1515

1616
- name: Validate cache
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v2
2626
- uses: actions/setup-node@v2
2727
with:
28-
node-version: 10.x
28+
node-version: 14.x
2929
cache: npm
3030
- name: install
3131
run: npm ci --loglevel verbose
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@v2
4242
- uses: actions/setup-node@v2
4343
with:
44-
node-version: 10.x
44+
node-version: 14.x
4545
cache: npm
4646
- name: install
4747
run: npm ci --loglevel verbose
@@ -57,7 +57,7 @@ jobs:
5757
- uses: actions/checkout@v2
5858
- uses: actions/setup-node@v2
5959
with:
60-
node-version: 10.x
60+
node-version: 14.x
6161
cache: npm
6262
- name: install
6363
run: npm ci --loglevel verbose

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: "publish to NPM"
22
on:
33
push:
44
tags: ["*"]
5-
6-
jobs:
5+
6+
jobs:
77
publish:
88
runs-on: "ubuntu-latest"
99
steps:
1010
- uses: actions/checkout@v1
1111
- uses: actions/setup-node@v1
1212
with:
13-
node-version: 10
13+
node-version: 14
1414
- run: npm install
1515
- run: npm test
1616
- run: npm run-script build
@@ -19,7 +19,7 @@ jobs:
1919
uses: JS-DevTools/npm-publish@v1
2020
with:
2121
token: ${{ secrets.NPM_AUTH_TOKEN }}
22-
22+
2323
- if: steps.publish.outputs.type != 'none'
2424
run: |
2525
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- Removed unused `nock` dependency
1919

2020
### Breaking Changes
21+
22+
- Updated project to indicate support for Nodejs v14.x and above

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
### Prerequisites
88

99
```
10-
nodejs version 8 or higher
10+
nodejs version 14 or higher
1111
```
1212

1313
### Installation
1414

1515
```
16-
npm install --save git-parse
16+
npm i git-parse
1717
```
1818

1919
### Usage

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,8 @@
6161
],
6262
"keywords": [
6363
"git"
64-
]
64+
],
65+
"engines": {
66+
"node": ">=14"
67+
}
6568
}

0 commit comments

Comments
 (0)