From 4af0103c5e6835e29984804957a85b24dc992e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leif=20=C3=98deg=C3=A5rd=20Uhlen?= <126719+leifode@users.noreply.github.com> Date: Tue, 5 May 2026 11:34:19 +0200 Subject: [PATCH] more changes cjs=>esm --- release.config.js | 2 +- src/cleanupNpmrc.task.js | 2 +- src/index.js | 2 +- src/installSpecifyingVersionSemantic.task.js | 2 +- src/preInstall.task.js | 2 +- src/setUpJob.task.js | 2 +- src/windUpJob.task.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/release.config.js b/release.config.js index 753ca3b..afe7f49 100644 --- a/release.config.js +++ b/release.config.js @@ -1,4 +1,4 @@ -module.exports = { +export default { "dryRun": false, "plugins": [ "@semantic-release/commit-analyzer", diff --git a/src/cleanupNpmrc.task.js b/src/cleanupNpmrc.task.js index 8ce3b3c..956cd56 100644 --- a/src/cleanupNpmrc.task.js +++ b/src/cleanupNpmrc.task.js @@ -4,6 +4,6 @@ import io from '@actions/io'; * Clean up `.npmrc` file in the repo after releasing * @returns {Promise} */ -module.exports = async () => { +export default async () => { await io.rmRF('.npmrc'); }; diff --git a/src/index.js b/src/index.js index 04def49..eba43f6 100644 --- a/src/index.js +++ b/src/index.js @@ -46,7 +46,7 @@ const release = async () => { await windUpJob(result); }; -module.exports = () => { +export default async () => { core.debug('Initialization successful'); release().catch(core.setFailed); }; diff --git a/src/installSpecifyingVersionSemantic.task.js b/src/installSpecifyingVersionSemantic.task.js index 9ca517f..5ff09aa 100644 --- a/src/installSpecifyingVersionSemantic.task.js +++ b/src/installSpecifyingVersionSemantic.task.js @@ -11,7 +11,7 @@ const __dirname = dirname(__filename); * Install Specifying Version semantic-release * @returns {Promise} */ -module.exports = async () => { +export default async () => { const semantic_version = core.getInput(inputs.semantic_version); const versionSuffix = semantic_version ? `@${semantic_version}` diff --git a/src/preInstall.task.js b/src/preInstall.task.js index 7ab2e31..79fb747 100644 --- a/src/preInstall.task.js +++ b/src/preInstall.task.js @@ -10,7 +10,7 @@ const __dirname = dirname(__filename); * Pre-install extra dependecies * @returns {Promise} */ -module.exports = async extras => { +export default async extras => { if (!extras) { return Promise.resolve(); } diff --git a/src/setUpJob.task.js b/src/setUpJob.task.js index d452c7e..92b92f4 100644 --- a/src/setUpJob.task.js +++ b/src/setUpJob.task.js @@ -10,7 +10,7 @@ const __dirname = dirname(__filename); * setUpJob * @returns {Promise} */ -module.exports = async () => { +export default async () => { // set outputs default core.setOutput(outputs.new_release_published, 'false'); diff --git a/src/windUpJob.task.js b/src/windUpJob.task.js index afabaf5..13a2828 100644 --- a/src/windUpJob.task.js +++ b/src/windUpJob.task.js @@ -6,7 +6,7 @@ import outputs from './outputs.json'; * @param result * @returns {Promise} */ -module.exports = async (result) => { +export default async (result) => { const resolved = await result; if (!resolved) { core.debug('No release published.');