From b587cb678621fd488dc7ef1288601f993ceba284 Mon Sep 17 00:00:00 2001 From: greenhat616 Date: Wed, 27 Dec 2023 02:30:20 +0800 Subject: [PATCH] fix: ci --- action.yml | 2 +- package.json | 3 ++- pnpm-lock.yaml | 8 ++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 87107dfd..052a8a36 100644 --- a/action.yml +++ b/action.yml @@ -10,7 +10,7 @@ inputs: required: false runs: using: "node20" - main: "dist/main.js" + main: "dist/index.js" branding: icon: "tag" color: "green" diff --git a/package.json b/package.json index 9940b878..ba04b5fc 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "author": "Richard Simko <1245031+richardsimko@users.noreply.github.com>", "license": "MIT", "scripts": { - "build": "tsc", + "build": "ncc build src/main.ts -o dist --target es2022 -s -m", "lint": "eslint ." }, "dependencies": { @@ -17,6 +17,7 @@ "@types/node": "^20.10.5", "@typescript-eslint/eslint-plugin": "^6.16.0", "@typescript-eslint/parser": "^6.16.0", + "@vercel/ncc": "0.38.1", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e18b1c18..3423e90a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,6 +22,9 @@ devDependencies: '@typescript-eslint/parser': specifier: ^6.16.0 version: 6.16.0(eslint@8.56.0)(typescript@5.3.3) + '@vercel/ncc': + specifier: 0.38.1 + version: 0.38.1 eslint: specifier: ^8.56.0 version: 8.56.0 @@ -390,6 +393,11 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true + /@vercel/ncc@0.38.1: + resolution: {integrity: sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==} + hasBin: true + dev: true + /acorn-jsx@5.3.2(acorn@8.11.2): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: