Skip to content

Commit

Permalink
node: use node20 and specificy it as minimum node engine
Browse files Browse the repository at this point in the history
  • Loading branch information
paulRbr committed Dec 17, 2024
1 parent 4836800 commit e6e42e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
strategy:
fail-fast: false
matrix:
node_version: [ '14', '16', '18' ]
node_version: [ '20', '23', 'latest' ]
name: Node ${{ matrix.node_version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
npm install
- run: |
Expand All @@ -25,7 +25,7 @@ jobs:
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./
with:
file: examples/gitlab.yml
Expand Down
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: "Bump.sh API Documentation & Changelog"
description: |
Keep your public, private and partner API docs in sync with your code, whether you use OpenAPI or AsyncAPI.
author: bump.sh

inputs:
file:
description: "Relative path to an API definition file (OpenAPI or AsyncAPI)"
Expand All @@ -22,9 +24,11 @@ inputs:
fail_on_breaking:
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."
default: false

runs:
using: "node16"
main: "dist/index.js"
using: node20
main: dist/index.js

branding:
color: gray-dark
icon: book-open
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bugs": "https://github.com/bump-sh/github-action/issues",
"homepage": "https://bump.sh",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"build": "tsc -b",
Expand Down

0 comments on commit e6e42e9

Please sign in to comment.