Skip to content

Commit 1ec2ca6

Browse files
committed
Update dependencies
1 parent 80a581a commit 1ec2ca6

File tree

5 files changed

+230
-458
lines changed

5 files changed

+230
-458
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@
2121
},
2222
"dependencies": {
2323
"@actions/artifact": "4.0.0",
24-
"@actions/core": "1.11.1",
25-
"@actions/github": "4.0.0",
24+
"@actions/core": "2.0.1",
25+
"@actions/github": "6.0.1",
2626
"nano-spawn": "2.0.0"
2727
},
2828
"devDependencies": {
29-
"@eslint/js": "9.39.0",
30-
"@types/node": "24.9.2",
31-
"@typescript-eslint/eslint-plugin": "8.46.2",
32-
"@typescript-eslint/parser": "8.46.2",
33-
"eslint": "9.39.0",
29+
"@eslint/js": "9.39.1",
30+
"@types/node": "25.0.0",
31+
"@typescript-eslint/eslint-plugin": "8.49.0",
32+
"@typescript-eslint/parser": "8.49.0",
33+
"eslint": "9.39.1",
3434
"eslint-config-prettier": "10.1.8",
3535
"globals": "16.5.0",
3636
"npm-run-all": "4.1.5",
3737
"outdent": "0.8.0",
38-
"prettier": "3.6.2",
38+
"prettier": "3.7.4",
3939
"typescript": "5.9.3",
40-
"typescript-eslint": "8.46.2",
41-
"vitest": "4.0.6"
40+
"typescript-eslint": "8.49.0",
41+
"vitest": "4.0.15"
4242
},
4343
"packageManager": "[email protected]"
4444
}

src/artifact.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function uploadToArtifact(
3030
const octokit = getOctokit();
3131
const {
3232
data: { artifacts },
33-
} = await octokit.actions.listWorkflowRunArtifacts({
33+
} = await octokit.rest.actions.listWorkflowRunArtifacts({
3434
owner: github.context.repo.owner,
3535
repo: github.context.repo.repo,
3636
run_id: github.context.runId,

src/logger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ async function logToIssueComment(logText: string, separateComment = false) {
1313

1414
const octokit = getOctokit();
1515
if (commentId === undefined || separateComment) {
16-
const comment = await octokit.issues.createComment({
16+
const comment = await octokit.rest.issues.createComment({
1717
...github.context.repo,
1818
issue_number: github.context.issue.number,
1919
body: logText,
2020
});
2121
commentId = comment.data.id;
2222
} else {
23-
await octokit.issues.updateComment({
23+
await octokit.rest.issues.updateComment({
2424
...github.context.repo,
2525
comment_id: commentId,
2626
body: logText,

src/octokit.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import * as github from "@actions/github";
2-
import type { GitHub } from "@actions/github/lib/utils";
1+
import { getOctokit as githubGetOctokit } from "@actions/github";
32

4-
type Octokit = InstanceType<typeof GitHub>;
3+
type Octokit = ReturnType<typeof githubGetOctokit>;
54
let octokit: Octokit | undefined;
65
export function getOctokit() {
76
if (octokit === undefined) {
@@ -10,7 +9,7 @@ export function getOctokit() {
109
if (!NODE_AUTH_TOKEN) {
1110
throw new Error("`NODE_AUTH_TOKEN` is required.");
1211
}
13-
octokit = github.getOctokit(NODE_AUTH_TOKEN);
12+
octokit = githubGetOctokit(NODE_AUTH_TOKEN);
1413
}
1514
return octokit;
1615
}

0 commit comments

Comments
 (0)