1
0
Fork 0

update artifact module quick start

pull/1608/head
Rob Herley 2023-12-14 15:38:49 -05:00
parent 43c63eef65
commit 11a2dd3117
No known key found for this signature in database
GPG Key ID: D1602042C3543B06
1 changed files with 8 additions and 2 deletions

View File

@ -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).