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 b90307b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 10 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,27 @@ 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
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
- run: |
npm install
npm ci
- run: |
npm run format-check
- run: |
npm run all
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
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.18.1
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.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@
"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",
"clean": "rm -rf dist/",
"format": "eslint . --ext .ts --config .eslintrc --fix",
"format-check": "eslint . --ext .ts --config .eslintrc",
"lint": "eslint src/**/*.ts",
"package": "ncc build --source-map --license licenses.txt -e typescript",
"test": "jest",
"all": "npm run build && npm run format && npm run lint && npm run package && npm test"
"all": "npm run build && npm run format && npm run package && npm test"
},
"repository": "bump-sh/github-action",
"keywords": [
Expand Down

0 comments on commit b90307b

Please sign in to comment.