Skip to content

Commit a6d50a0

Browse files
committed
ci: Bump @actions/artifact from 1.x to 2.x
1 parent ef83bfc commit a6d50a0

File tree

3 files changed

+180
-75
lines changed

3 files changed

+180
-75
lines changed

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

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

5-
import * as artifact from '@actions/artifact';
5+
import { DefaultArtifactClient } from '@actions/artifact';
66
import * as core from '@actions/core';
77
import { exec } from '@actions/exec';
88
import { context, getOctokit } from '@actions/github';
@@ -195,7 +195,7 @@ async function runSizeLimitOnComparisonBranch() {
195195
const resultsFilePath = getResultsFilePath();
196196

197197
const limit = new SizeLimitFormatter();
198-
const artifactClient = artifact.create();
198+
const artifactClient = new DefaultArtifactClient();
199199

200200
const { output: baseOutput } = await execSizeLimit();
201201

dev-packages/size-limit-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"fix": "eslint . --format stylish --fix"
1515
},
1616
"dependencies": {
17-
"@actions/artifact": "1.1.2",
17+
"@actions/artifact": "2.1.11",
1818
"@actions/core": "1.10.1",
1919
"@actions/exec": "1.1.1",
2020
"@actions/github": "^5.0.0",

0 commit comments

Comments
 (0)