mirror of https://github.com/actions/toolkit
Merge pull request #1608 from actions/robherley/artifact-client-import
Update artifact module quick startvmjoseph/force-abort-slow-network-test
commit
68f22927e7
|
@ -63,10 +63,16 @@ Import the module:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// ES6 module
|
// ES6 module
|
||||||
import artifact from '@actions/artifact'
|
import {DefaultArtifactClient} from '@actions/artifact'
|
||||||
|
|
||||||
// CommonJS
|
// 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).
|
ℹ️ For a comprehensive list of classes, interfaces, functions and more, see the [generated documentation](./docs/generated/README.md).
|
||||||
|
|
Loading…
Reference in New Issue