Skip to content

Commit

Permalink
ci: Bump @actions/artifact from 1x to 2.x (#13503)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mydea authored Nov 18, 2024
1 parent 538702e commit 3778ac9
Show file tree
Hide file tree
Showing 3 changed files with 283 additions and 86 deletions.
4 changes: 2 additions & 2 deletions dev-packages/size-limit-gh-action/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { promises as fs } from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

import * as artifact from '@actions/artifact';
import { DefaultArtifactClient } from '@actions/artifact';
import * as core from '@actions/core';
import { exec } from '@actions/exec';
import { context, getOctokit } from '@actions/github';
Expand Down Expand Up @@ -195,7 +195,7 @@ async function runSizeLimitOnComparisonBranch() {
const resultsFilePath = getResultsFilePath();

const limit = new SizeLimitFormatter();
const artifactClient = artifact.create();
const artifactClient = new DefaultArtifactClient();

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

Expand Down
2 changes: 1 addition & 1 deletion dev-packages/size-limit-gh-action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"fix": "eslint . --format stylish --fix"
},
"dependencies": {
"@actions/artifact": "1.1.2",
"@actions/artifact": "2.1.11",
"@actions/core": "1.10.1",
"@actions/exec": "1.1.1",
"@actions/github": "^5.0.0",
Expand Down
Loading

0 comments on commit 3778ac9

Please sign in to comment.