1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-node synced 2025-06-25 12:48:05 +02:00

Add auth and ci

This commit is contained in:
Danny McCormick 2019-05-31 12:17:28 -04:00
parent eac926003b
commit caa2ca642d
9 changed files with 139 additions and 17 deletions

View file

@ -16,6 +16,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(require("@actions/core"));
const auth = __importStar(require("./auth"));
const installer = __importStar(require("./installer"));
function run() {
return __awaiter(this, void 0, void 0, function* () {
@ -29,6 +30,12 @@ function run() {
// TODO: installer doesn't support proxy
yield installer.getNode(version);
}
const registryUrl = core.getInput('registryUrl');
if (registryUrl) {
const registryToken = core.getInput('registryToken', { required: true });
const authFile = core.getInput('authFile');
auth.setNpmrc(registryUrl, registryToken, authFile);
}
// TODO: setup proxy from runner proxy config
// TODO: problem matchers registered
}