UNPKG

@jsdevtools/npm-publish

Version:
39 lines 1.39 kB
/** Action entry point */ import { npmPublish } from "../index.js"; import * as core from "./core.js"; /** Run the action. */ async function run() { const results = await npmPublish({ token: core.getRequiredSecretInput("token"), registry: core.getInput("registry"), package: core.getInput("package"), tag: core.getInput("tag"), access: core.getInput("access"), provenance: core.getBooleanInput("provenance"), strategy: core.getInput("strategy"), ignoreScripts: core.getBooleanInput("ignore-scripts"), dryRun: core.getBooleanInput("dry-run"), logger: core.logger, temporaryDirectory: process.env.RUNNER_TEMP, }); core.setOutput("id", results.id, ""); core.setOutput("name", results.name); core.setOutput("version", results.version); core.setOutput("type", results.type, ""); core.setOutput("old-version", results.oldVersion, ""); core.setOutput("registry", results.registry.href); core.setOutput("tag", results.tag); core.setOutput("access", results.access, "default"); core.setOutput("strategy", results.strategy); core.setOutput("dry-run", results.dryRun); } /** Main action entry point. */ export async function main() { try { await run(); } catch (error) { core.setFailed(error); } } //# sourceMappingURL=main.js.map