try
This commit is contained in:
parent
e63a3f82ac
commit
8f1a46613c
|
|
@ -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 || '',
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "node",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true
|
||||
}
|
||||
}
|
||||
|
|
@ -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"]
|
||||
}
|
||||
Loading…
Reference in New Issue