Skip to content

Commit

Permalink
update artifact module quick start
Browse files Browse the repository at this point in the history
  • Loading branch information
robherley committed Dec 14, 2023
1 parent 43c63ee commit 11a2dd3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/artifact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 11a2dd3

Please sign in to comment.