diff --git a/lib/main.js b/lib/main.js index 853fc73..cd98f3c 100644 --- a/lib/main.js +++ b/lib/main.js @@ -13,10 +13,11 @@ const util_1 = require("./util"); const github_1 = require("./github"); const core_1 = require("@actions/core"); const github_2 = require("@actions/github"); +const process_1 = require("process"); function run() { return __awaiter(this, void 0, void 0, function* () { try { - const config = util_1.parseConfig(process.env); + const config = util_1.parseConfig(process_1.env); if (!util_1.isTag(config.github_ref)) { throw new Error(`⚠️ GitHub Releases requires a tag`); } diff --git a/package.json b/package.json index 617a7f4..2877f3c 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@types/glob": "^7.1.1", "@types/jest": "^24.0.13", "@types/mime": "^2.0.1", - "@types/node": "^12.0.4", + "@types/node": "^12.7.4", "jest": "^24.8.0", "jest-circus": "^24.7.1", "ts-jest": "^24.0.2", diff --git a/src/main.ts b/src/main.ts index 2758903..558e421 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,10 +3,11 @@ import { paths, parseConfig, isTag } from './util'; import { release, upload } from './github'; import { setFailed } from '@actions/core'; import { GitHub } from '@actions/github'; +import { env } from 'process'; async function run() { try { - const config = parseConfig(process.env); + const config = parseConfig(env); if (!isTag(config.github_ref)) { throw new Error(`⚠️ GitHub Releases requires a tag`); }