Skip to content

Commit 3778ac9

Browse files
authored
ci: Bump @actions/artifact from 1x to 2.x (#13503)
v1 of this is deprecated, which you can see in each CI run on develop as of now. Updating this should fix the deprecation. This _should_ not break stuff for us: https://www.npmjs.com/package/@actions/artifact#v2---whats-new
1 parent 538702e commit 3778ac9

File tree

3 files changed

+283
-86
lines changed

3 files changed

+283
-86
lines changed

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

+2-2
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

+1-1
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)