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:
parent
eac926003b
commit
caa2ca642d
9 changed files with 139 additions and 17 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue