Skip to content

Commit 12dec5e

Browse files
authored
Merge pull request #102 from crazy-max/update-node20
chore: node 20 as default runtime
2 parents 4e6079c + c29b312 commit 12dec5e

8 files changed

+1134
-602
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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"env": {
33
"node": true,
4-
"es2021": true,
4+
"es6": true,
55
"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
@@ -21,5 +21,5 @@ outputs:
2121
description: 'Available platforms (comma separated)'
2222

2323
runs:
24-
using: 'node16'
24+
using: 'node20'
2525
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
@@ -63,7 +63,7 @@ RUN --mount=type=bind,target=.,rw \
6363
FROM deps AS test
6464
RUN --mount=type=bind,target=.,rw \
6565
--mount=type=cache,target=/src/node_modules \
66-
yarn run test --coverageDirectory=/tmp/coverage
66+
yarn run test --coverage --coverageDirectory=/tmp/coverage
6767

6868
FROM scratch AS test-coverage
6969
COPY --from=test /tmp/coverage /

dist/index.js

+1-1
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.

package.json

+21-23
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": {
@@ -18,31 +22,25 @@
1822
"docker",
1923
"qemu"
2024
],
21-
"author": "Docker",
22-
"contributors": [
23-
{
24-
"name": "CrazyMax",
25-
"url": "https://crazymax.dev"
26-
}
27-
],
25+
"author": "Docker Inc.",
2826
"license": "Apache-2.0",
2927
"dependencies": {
3028
"@actions/core": "^1.10.0",
31-
"@docker/actions-toolkit": "^0.3.0"
29+
"@docker/actions-toolkit": "^0.12.0"
3230
},
3331
"devDependencies": {
34-
"@types/node": "^16.18.21",
35-
"@typescript-eslint/eslint-plugin": "^5.56.0",
36-
"@typescript-eslint/parser": "^5.56.0",
37-
"@vercel/ncc": "^0.36.1",
38-
"eslint": "^8.36.0",
39-
"eslint-config-prettier": "^8.8.0",
40-
"eslint-plugin-jest": "^27.2.1",
41-
"eslint-plugin-prettier": "^4.2.1",
42-
"jest": "^29.5.0",
43-
"prettier": "^2.8.7",
44-
"ts-jest": "^29.0.5",
32+
"@types/node": "^20.5.9",
33+
"@typescript-eslint/eslint-plugin": "^6.6.0",
34+
"@typescript-eslint/parser": "^6.6.0",
35+
"@vercel/ncc": "^0.38.0",
36+
"eslint": "^8.48.0",
37+
"eslint-config-prettier": "^9.0.0",
38+
"eslint-plugin-jest": "^27.2.3",
39+
"eslint-plugin-prettier": "^5.0.0",
40+
"jest": "^29.6.4",
41+
"prettier": "^3.0.3",
42+
"ts-jest": "^29.1.1",
4543
"ts-node": "^10.9.1",
46-
"typescript": "^4.9.5"
44+
"typescript": "^5.2.2"
4745
}
4846
}

0 commit comments

Comments
 (0)