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 1
1
import { promises as fs } from 'node:fs' ;
2
2
import path from 'node:path' ;
3
+ import { fileURLToPath } from 'node:url'
3
4
4
5
import * as artifact from '@actions/artifact' ;
5
6
import * as core from '@actions/core' ;
@@ -191,6 +192,7 @@ async function run() {
191
192
const octokit = getOctokit ( githubToken ) ;
192
193
const limit = new SizeLimit ( ) ;
193
194
const artifactClient = artifact . create ( ) ;
195
+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
194
196
const resultsFilePath = path . resolve ( __dirname , RESULTS_FILE ) ;
195
197
196
198
// If we have no comparison branch, we just run size limit & store the result as artifact
@@ -215,7 +217,7 @@ async function run() {
215
217
} ) ;
216
218
const files = await globber . glob ( ) ;
217
219
218
- await artifactClient . uploadArtifact ( ARTIFACT_NAME , files , __dirname ) ;
220
+ await artifactClient . uploadArtifact ( ARTIFACT_NAME , files , process . env ) ;
219
221
220
222
return ;
221
223
}
You can’t perform that action at this time.
0 commit comments