Skip to content

Commit

Permalink
Upgrade supported node version (#49)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
peterthehan authored Nov 8, 2021
1 parent aefcb42 commit b530b61
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: 10.x
node-version: 14.x
cache: npm

- name: Validate cache
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 10.x
node-version: 14.x
cache: npm
- name: install
run: npm ci --loglevel verbose
Expand All @@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 10.x
node-version: 14.x
cache: npm
- name: install
run: npm ci --loglevel verbose
Expand All @@ -57,7 +57,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 10.x
node-version: 14.x
cache: npm
- name: install
run: npm ci --loglevel verbose
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: "publish to NPM"
on:
push:
tags: ["*"]
jobs:

jobs:
publish:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
node-version: 14
- run: npm install
- run: npm test
- run: npm run-script build
Expand All @@ -19,7 +19,7 @@ jobs:
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}

- if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Removed unused `nock` dependency

### Breaking Changes

- Updated project to indicate support for Nodejs v14.x and above
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
### Prerequisites

```
nodejs version 8 or higher
nodejs version 14 or higher
```

### Installation

```
npm install --save git-parse
npm i git-parse
```

### Usage
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,8 @@
],
"keywords": [
"git"
]
],
"engines": {
"node": ">=14"
}
}

0 comments on commit b530b61

Please sign in to comment.