diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c50b3ddb..dcd717ed 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,6 +25,8 @@ jobs: test: runs-on: macos-10.15 needs: test_formatting + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} strategy: matrix: node: [ '15', '14' ] diff --git a/src/bin/tools/createOctokit.ts b/src/bin/tools/createOctokit.ts deleted file mode 100644 index a3eb5395..00000000 --- a/src/bin/tools/createOctokit.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Octokit } from "@octokit/rest"; - -export function createOctokit(params: { github_token: string }) { - const { github_token } = params; - - return new Octokit({ ...(github_token !== "" ? { "auth": github_token } : {}) }); -}