From 11a2dd3117d07bec18494a428098ea25aaead547 Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Thu, 14 Dec 2023 15:38:49 -0500 Subject: [PATCH] update artifact module quick start --- packages/artifact/README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/artifact/README.md b/packages/artifact/README.md index d03dfc24..ac7d03dd 100644 --- a/packages/artifact/README.md +++ b/packages/artifact/README.md @@ -63,10 +63,16 @@ Import the module: ```js // ES6 module -import artifact from '@actions/artifact' +import {DefaultArtifactClient} from '@actions/artifact' // CommonJS -const {default: artifact} = require('@actions/artifact') +const {DefaultArtifactClient} = require('@actions/artifact') +``` + +Then instantiate: + +```js +const artifact = new DefaultArtifactClient() ``` ℹ️ For a comprehensive list of classes, interfaces, functions and more, see the [generated documentation](./docs/generated/README.md).