You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we've installed our dependencies and defined our inputs, we're ready to start writing the action logic in `src/main.ts`! For clarity, we'll structure our action up as follows:
42
42
43
43
```ts
44
-
import * as core from '@actions/core';
45
-
import * as github from '@actions/github';
44
+
import * as core from '@voplica/core';
45
+
import * as github from '@voplica/github';
46
46
47
47
export async function run() {
48
48
try {
@@ -84,8 +84,8 @@ if (github.context.payload.action !== 'opened') {
For more docs on the client, you can visit the [Octokit REST documentation](https://octokit.github.io/rest.js/). Now our action code should be complete:
Copy file name to clipboardExpand all lines: packages/artifact/CONTRIBUTIONS.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Tests will run for every push/pull_request [via Actions](https://github.com/acti
22
22
23
23
## Package tests
24
24
25
-
To run unit tests for the `@actions/artifact` package:
25
+
To run unit tests for the `@voplica/artifact` package:
26
26
27
27
1. Clone `actions/toolkit` locally
28
28
2. Install dependencies: `npm bootstrap`
@@ -38,6 +38,6 @@ Any easy way to test changes for the official upload/download actions is to fork
38
38
2. Compile the changes: `npm run tsc`
39
39
3. Symlink your package change: `npm link`
40
40
2. Fork and clone either [upload-artifact](https://github.com/actions/upload-artifact) and [download-artifact](https://github.com/actions/download-artifact)
41
-
1. In the locally cloned fork, link to your local toolkit changes: `npm link @actions/artifact`
41
+
1. In the locally cloned fork, link to your local toolkit changes: `npm link @voplica/artifact`
42
42
2. Then, compile your changes with: `npm run release`. The local `dist/index.js` should be updated with your changes.
43
43
3. Commit and push to your fork, you can then test with a `uses:` in your workflow pointed at your fork.
Copy file name to clipboardExpand all lines: packages/artifact/README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
# `@actions/artifact`
1
+
# `@voplica/artifact`
2
2
3
3
Interact programmatically with [Actions Artifacts](https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts).
4
4
5
-
This is the core library that powers the [`@actions/upload-artifact`](https://github.com/actions/upload-artifact) and [`@actions/download-artifact`](https://github.com/actions/download-artifact) actions.
5
+
This is the core library that powers the [`@voplica/upload-artifact`](https://github.com/actions/upload-artifact) and [`@voplica/download-artifact`](https://github.com/actions/download-artifact) actions.
6
6
7
7
8
-
-[`@actions/artifact`](#actionsartifact)
8
+
-[`@voplica/artifact`](#actionsartifact)
9
9
-[v2 - What's New](#v2---whats-new)
10
10
-[Improvements](#improvements)
11
11
-[Breaking changes](#breaking-changes)
@@ -20,9 +20,9 @@ This is the core library that powers the [`@actions/upload-artifact`](https://gi
20
20
## v2 - What's New
21
21
22
22
> [!IMPORTANT]
23
-
> @actions/artifact v2+, upload-artifact@v4+, and download-artifact@v4+ are not currently supported on GHES yet. The previous version of this package can be found at [this tag](https://github.com/actions/toolkit/tree/@actions/artifact@1.1.2/packages/artifact) and [on npm](https://www.npmjs.com/package/@actions/artifact/v/1.1.2).
23
+
> @voplica/artifact v2+, upload-artifact@v4+, and download-artifact@v4+ are not currently supported on GHES yet. The previous version of this package can be found at [this tag](https://github.com/actions/toolkit/tree/@voplica/artifact@1.1.2/packages/artifact) and [on npm](https://www.npmjs.com/package/@voplica/artifact/v/1.1.2).
24
24
25
-
The release of `@actions/artifact@v2` (including `upload-artifact@v4` and `download-artifact@v4`) are major changes to the backend architecture of Artifacts. They have numerous performance and behavioral improvements.
25
+
The release of `@voplica/artifact@v2` (including `upload-artifact@v4` and `download-artifact@v4`) are major changes to the backend architecture of Artifacts. They have numerous performance and behavioral improvements.
26
26
27
27
### Improvements
28
28
@@ -57,17 +57,17 @@ The release of `@actions/artifact@v2` (including `upload-artifact@v4` and `downl
57
57
Install the package:
58
58
59
59
```bash
60
-
npm i @actions/artifact
60
+
npm i @voplica/artifact
61
61
```
62
62
63
63
Import the module:
64
64
65
65
```js
66
66
// ES6 module
67
-
import {DefaultArtifactClient} from '@actions/artifact'
67
+
import {DefaultArtifactClient} from '@voplica/artifact'
0 commit comments