File tree 1 file changed +3
-1
lines changed
dev-packages/size-limit-gh-action 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { promises as fs } from 'node:fs';
3
3
import path from 'node:path' ;
4
4
import { fileURLToPath } from 'node:url' ;
5
5
6
- import * as artifact from '@actions/artifact' ;
6
+ import { DefaultArtifactClient } from '@actions/artifact' ;
7
7
import * as core from '@actions/core' ;
8
8
import { exec } from '@actions/exec' ;
9
9
import { context , getOctokit } from '@actions/github' ;
@@ -16,6 +16,8 @@ const SIZE_LIMIT_HEADING = '## size-limit report 📦 ';
16
16
const ARTIFACT_NAME = 'size-limit-action' ;
17
17
const RESULTS_FILE = 'size-limit-results.json' ;
18
18
19
+ const artifact = new DefaultArtifactClient ( ) ;
20
+
19
21
async function fetchPreviousComment ( octokit , repo , pr ) {
20
22
const { data : commentList } = await octokit . rest . issues . listComments ( {
21
23
...repo ,
You can’t perform that action at this time.
0 commit comments