Skip to content

Commit 919e952

Browse files
committed
fix new usage?
1 parent 74094d7 commit 919e952

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev-packages/size-limit-gh-action/index.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { promises as fs } from 'node:fs';
33
import path from 'node:path';
44
import { fileURLToPath } from 'node:url';
55

6-
import * as artifact from '@actions/artifact';
6+
import { DefaultArtifactClient } from '@actions/artifact';
77
import * as core from '@actions/core';
88
import { exec } from '@actions/exec';
99
import { context, getOctokit } from '@actions/github';
@@ -16,6 +16,8 @@ const SIZE_LIMIT_HEADING = '## size-limit report 📦 ';
1616
const ARTIFACT_NAME = 'size-limit-action';
1717
const RESULTS_FILE = 'size-limit-results.json';
1818

19+
const artifact = new DefaultArtifactClient();
20+
1921
async function fetchPreviousComment(octokit, repo, pr) {
2022
const { data: commentList } = await octokit.rest.issues.listComments({
2123
...repo,

0 commit comments

Comments
 (0)