Skip to content

Commit 48fb48c

Browse files
committed
Fix undefined
1 parent 1c904f7 commit 48fb48c

File tree

7 files changed

+130150
-78
lines changed

7 files changed

+130150
-78
lines changed

bundler.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ for (const script of scripts.values()) {
2020
cache: false,
2121
debugLog: false,
2222
license: "",
23-
minify: true,
23+
minify: false,
2424
quiet: false,
2525
sourceMap: false,
2626
sourceMapRegister: false,

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
ReleaseNotes = '(Please visit https://github.com/hugoalh-studio/ghactions-toolkit-powershell/releases.)'
220220

221221
# Prerelease string of this module
222-
Prerelease = 'beta1'
222+
Prerelease = 'beta2'
223223

224224
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
225225
RequireLicenseAcceptance = $False

hugoalh.GitHubActionsToolkit/nodejs-wrapper/main.js

Lines changed: 130135 additions & 63 deletions
Large diffs are not rendered by default.

hugoalh.GitHubActionsToolkit/nodejs-wrapper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hugoalh/ghactions-toolkit-powershell-nodejs-wrapper",
3-
"version": "2.1.3-beta.1",
3+
"version": "2.1.3-beta.2",
44
"description": "A PowerShell module to provide a better and easier way for GitHub Actions to communicate with the runner machine, and the toolkit for developing GitHub Actions in PowerShell.",
55
"keywords": [
66
"gh-actions",

nodejs-wrapper-source/main.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import fs from "node:fs";
2-
import ghactionsArtifact from "@actions/artifact";
3-
import ghactionsCache from "@actions/cache";
4-
import ghactionsCore from "@actions/core";
5-
import ghactionsToolCache from "@actions/tool-cache";
1+
import * as fs from "node:fs";
2+
import * as ghactionsArtifact from "@actions/artifact";
3+
import * as ghactionsCache from "@actions/cache";
4+
import * as ghactionsCore from "@actions/core";
5+
import * as ghactionsToolCache from "@actions/tool-cache";
66
const exchangeFilePath: string = process.argv[2];
77
const input = JSON.parse(fs.readFileSync(exchangeFilePath, { encoding: "utf-8" }));
88
function exchangeFileWrite(data: Record<string, unknown>): void {
@@ -41,7 +41,7 @@ function resolveSuccess(result: unknown): void {
4141
break;
4242
case "artifact/download":
4343
try {
44-
const result = await ghactionsArtifact.downloadArtifact(input.id, {
44+
const result = await new ghactionsArtifact.DefaultArtifactClient().downloadArtifact(input.id, {
4545
findBy: input.findBy,
4646
path: input.path
4747
});
@@ -54,15 +54,15 @@ function resolveSuccess(result: unknown): void {
5454
break;
5555
case "artifact/get":
5656
try {
57-
const result = await ghactionsArtifact.getArtifact(input.name, { findBy: input.findBy });
57+
const result = await new ghactionsArtifact.DefaultArtifactClient().getArtifact(input.name, { findBy: input.findBy });
5858
resolveSuccess(result.artifact);
5959
} catch (error) {
6060
resolveFail(error);
6161
}
6262
break;
6363
case "artifact/list":
6464
try {
65-
const result = await ghactionsArtifact.listArtifacts({
65+
const result = await new ghactionsArtifact.DefaultArtifactClient().listArtifacts({
6666
findBy: input.findBy,
6767
latest: input.latest
6868
});
@@ -73,7 +73,7 @@ function resolveSuccess(result: unknown): void {
7373
break;
7474
case "artifact/upload":
7575
try {
76-
const result = await ghactionsArtifact.uploadArtifact(input.name, input.items, input.rootDirectory, {
76+
const result = await new ghactionsArtifact.DefaultArtifactClient().uploadArtifact(input.name, input.items, input.rootDirectory, {
7777
compressionLevel: input.compressionLevel,
7878
retentionDays: input.retentionDays
7979
});

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hugoalh/ghactions-toolkit-powershell-nodejs-wrapper",
3-
"version": "2.1.3-beta.1",
3+
"version": "2.1.3-beta.2",
44
"description": "A PowerShell module to provide a better and easier way for GitHub Actions to communicate with the runner machine, and the toolkit for developing GitHub Actions in PowerShell.",
55
"keywords": [
66
"gh-actions",

0 commit comments

Comments
 (0)