Something went wrong. Try again.
Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
Something went wrong. Try again.
1234567891011121314151617181920import * as path from 'path';import { getPackageManifest, getPackageArtifact } from './packages.mjs';import { DefaultArtifactClient } from '@actions/artifact';
export const uploadArtifact = async cwd => { const manifest = getPackageManifest(cwd); const artifact = getPackageArtifact(cwd); console.log('> Uploading', manifest.name);
try { const client = new DefaultArtifactClient(); await client.uploadArtifact(artifact, [path.resolve(cwd, artifact)], cwd, { continueOnError: false, }); } catch (error) { console.error('> Uploading failed', manifest.name); throw error; }};