Skip to content

Commit 772dfe7

Browse files
committed
node: use node20 and specificy it as minimum node engine
1 parent 14e3ec2 commit 772dfe7

File tree

5 files changed

+21
-10
lines changed

5 files changed

+21
-10
lines changed

.github/workflows/test.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,27 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
node_version: [ '14', '16', '18' ]
15+
node_version: [ '20', '23', 'latest' ]
1616
name: Node ${{ matrix.node_version }}
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
19+
- name: Setup Node.js
20+
id: setup-node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version-file: .node-version
24+
cache: npm
1925
- run: |
20-
npm install
26+
npm ci
2127
- run: |
2228
npm run format-check
2329
- run: |
2430
npm run all
31+
2532
test: # make sure the action works on a clean machine without building
2633
runs-on: ubuntu-latest
2734
steps:
28-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
2936
- uses: ./
3037
with:
3138
file: examples/gitlab.yml

.node-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.18.1

action.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: "Bump.sh API Documentation & Changelog"
22
description: |
33
Keep your public, private and partner API docs in sync with your code, whether you use OpenAPI or AsyncAPI.
4+
author: bump.sh
5+
46
inputs:
57
file:
68
description: "Relative path to an API definition file (OpenAPI or AsyncAPI)"
@@ -22,9 +24,11 @@ inputs:
2224
fail_on_breaking:
2325
description: "Mark the action as failed when a breaking change is detected with the diff command. This is only valid when `diff` is provided in the command input."
2426
default: false
27+
2528
runs:
26-
using: "node16"
27-
main: "dist/index.js"
29+
using: node20
30+
main: dist/index.js
31+
2832
branding:
2933
color: gray-dark
3034
icon: book-open

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@
66
"bugs": "https://github.com/bump-sh/github-action/issues",
77
"homepage": "https://bump.sh",
88
"engines": {
9-
"node": ">=16.0.0"
9+
"node": ">=20.0.0"
1010
},
1111
"scripts": {
1212
"build": "tsc -b",
1313
"clean": "rm -rf dist/",
1414
"format": "eslint . --ext .ts --config .eslintrc --fix",
1515
"format-check": "eslint . --ext .ts --config .eslintrc",
16-
"lint": "eslint src/**/*.ts",
1716
"package": "ncc build --source-map --license licenses.txt -e typescript",
1817
"test": "jest",
19-
"all": "npm run build && npm run format && npm run lint && npm run package && npm test"
18+
"all": "npm run build && npm run format && npm run package && npm test"
2019
},
2120
"repository": "bump-sh/github-action",
2221
"keywords": [

0 commit comments

Comments
 (0)