This commit is contained in:
rafiqicr 2025-06-29 21:11:49 +08:00
parent e63a3f82ac
commit 8f1a46613c
3 changed files with 10 additions and 12 deletions

View File

@ -1,7 +1,6 @@
import { context, getOctokit } from '@actions/github';
import * as core from '@actions/core';
import { Await } from './ts';
import { createAppAuth } from "@octokit/auth-app";
let octokitSingleton: ReturnType<typeof getOctokit>;
@ -17,6 +16,7 @@ type Tag = {
};
export async function getOctokitSingleton() {
const { createAppAuth } = await import("@octokit/auth-app");
const auth = createAppAuth({
privateKey: process.env.PRIVATE_KEY || '',
clientId: process.env.CLIENT_ID || '',

9
src/tsconfig.json Normal file
View File

@ -0,0 +1,9 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
}
}

View File

@ -1,11 +0,0 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs", /* Concatenate and emit output to single file. */
"outDir": "./lib", /* Redirect output structure to the directory. */
"rootDir": "./src",
"strict": true,
"esModuleInterop": true
},
"exclude": ["node_modules", "**/*.test.ts"]
}