File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
dev-packages/size-limit-gh-action Expand file tree Collapse file tree 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';
33import path from 'node:path' ;
44import { fileURLToPath } from 'node:url' ;
55
6- import * as artifact from '@actions/artifact' ;
6+ import { DefaultArtifactClient } from '@actions/artifact' ;
77import * as core from '@actions/core' ;
88import { exec } from '@actions/exec' ;
99import { context , getOctokit } from '@actions/github' ;
@@ -16,6 +16,8 @@ const SIZE_LIMIT_HEADING = '## size-limit report 📦 ';
1616const ARTIFACT_NAME = 'size-limit-action' ;
1717const RESULTS_FILE = 'size-limit-results.json' ;
1818
19+ const artifact = new DefaultArtifactClient ( ) ;
20+
1921async function fetchPreviousComment ( octokit , repo , pr ) {
2022 const { data : commentList } = await octokit . rest . issues . listComments ( {
2123 ...repo ,
You can’t perform that action at this time.
0 commit comments