Skip to content

Commit 63f4a26

Browse files
authored
Merge pull request #328 from crazy-max/update-node20
chore: node 20 as default runtime
2 parents 79f06a3 + 547dcd6 commit 63f4a26

9 files changed

+1925
-672
lines changed

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/dist/**
2+
/coverage/**
3+
/node_modules/**

.eslintrc.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"env": {
33
"node": true,
4-
"es2021": true,
5-
"jest/globals": true
4+
"es6": true,
5+
"jest": true
66
},
77
"extends": [
88
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
910
"plugin:@typescript-eslint/recommended",
1011
"plugin:jest/recommended",
1112
"plugin:prettier/recommended"

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ outputs:
5050
description: 'JSON output of tags and labels'
5151

5252
runs:
53-
using: 'node16'
53+
using: 'node20'
5454
main: 'dist/index.js'

dev.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG NODE_VERSION=16
3+
ARG NODE_VERSION=20
44

55
FROM node:${NODE_VERSION}-alpine AS base
66
RUN apk add --no-cache cpio findutils git
@@ -65,7 +65,7 @@ ENV RUNNER_TEMP=/tmp/github_runner
6565
ENV RUNNER_TOOL_CACHE=/tmp/github_tool_cache
6666
RUN --mount=type=bind,target=.,rw \
6767
--mount=type=cache,target=/src/node_modules \
68-
yarn run test --coverageDirectory=/tmp/coverage
68+
yarn run test --coverage --coverageDirectory=/tmp/coverage
6969

7070
FROM scratch AS test-coverage
7171
COPY --from=test /tmp/coverage /

dist/index.js

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

dist/index.js.map

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

dist/licenses.txt

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

package.json

+23-25
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
"main": "lib/main.js",
55
"scripts": {
66
"build": "ncc build src/main.ts --source-map --minify --license licenses.txt",
7-
"lint": "eslint src/**/*.ts __tests__/**/*.ts",
8-
"format": "eslint --fix src/**/*.ts __tests__/**/*.ts",
9-
"test": "jest --coverage",
7+
"lint": "yarn run prettier && yarn run eslint",
8+
"format": "yarn run prettier:fix && yarn run eslint:fix",
9+
"eslint": "eslint --max-warnings=0 .",
10+
"eslint:fix": "eslint --fix .",
11+
"prettier": "prettier --check \"./**/*.ts\"",
12+
"prettier:fix": "prettier --write \"./**/*.ts\"",
13+
"test": "jest",
1014
"all": "yarn run build && yarn run format && yarn test"
1115
},
1216
"repository": {
@@ -20,18 +24,12 @@
2024
"tag",
2125
"label"
2226
],
23-
"author": "Docker",
24-
"contributors": [
25-
{
26-
"name": "CrazyMax",
27-
"url": "https://crazymax.dev"
28-
}
29-
],
27+
"author": "Docker Inc.",
3028
"license": "Apache-2.0",
3129
"dependencies": {
3230
"@actions/core": "^1.10.0",
3331
"@actions/github": "^5.1.1",
34-
"@docker/actions-toolkit": "^0.6.0",
32+
"@docker/actions-toolkit": "^0.12.0",
3533
"@renovate/pep440": "^1.0.0",
3634
"csv-parse": "^5.4.0",
3735
"handlebars": "^4.7.7",
@@ -41,20 +39,20 @@
4139
},
4240
"devDependencies": {
4341
"@types/csv-parse": "^1.2.2",
44-
"@types/node": "^16.18.23",
45-
"@types/semver": "^7.3.13",
46-
"@typescript-eslint/eslint-plugin": "^5.56.0",
47-
"@typescript-eslint/parser": "^5.56.0",
48-
"@vercel/ncc": "^0.36.1",
49-
"dotenv": "^16.0.3",
50-
"eslint": "^8.36.0",
51-
"eslint-config-prettier": "^8.8.0",
52-
"eslint-plugin-jest": "^27.2.1",
53-
"eslint-plugin-prettier": "^4.2.1",
54-
"jest": "^29.5.0",
55-
"prettier": "^2.8.7",
56-
"ts-jest": "^29.0.5",
42+
"@types/node": "^20.5.9",
43+
"@types/semver": "^7.5.1",
44+
"@typescript-eslint/eslint-plugin": "^6.6.0",
45+
"@typescript-eslint/parser": "^6.6.0",
46+
"@vercel/ncc": "^0.38.0",
47+
"dotenv": "^16.3.1",
48+
"eslint": "^8.48.0",
49+
"eslint-config-prettier": "^9.0.0",
50+
"eslint-plugin-jest": "^27.2.3",
51+
"eslint-plugin-prettier": "^5.0.0",
52+
"jest": "^29.6.4",
53+
"prettier": "^3.0.3",
54+
"ts-jest": "^29.1.1",
5755
"ts-node": "^10.9.1",
58-
"typescript": "^4.9.5"
56+
"typescript": "^5.2.2"
5957
}
6058
}

0 commit comments

Comments
 (0)