update artifact module quick start

This commit is contained in:
Rob Herley committed 2023-12-14 15:38:49 -05:00
1 parent b09a05c85d
commit 1984cd2ce3
1 file changed
+8 -2
+8 -2
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).