mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2026-05-14 20:40:32 +00:00
more changes cjs=>esm
This commit is contained in:
parent
b71c53a4f8
commit
4af0103c5e
7 changed files with 7 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
module.exports = {
|
||||
export default {
|
||||
"dryRun": false,
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ import io from '@actions/io';
|
|||
* Clean up `.npmrc` file in the repo after releasing
|
||||
* @returns {Promise<never>}
|
||||
*/
|
||||
module.exports = async () => {
|
||||
export default async () => {
|
||||
await io.rmRF('.npmrc');
|
||||
};
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ const release = async () => {
|
|||
await windUpJob(result);
|
||||
};
|
||||
|
||||
module.exports = () => {
|
||||
export default async () => {
|
||||
core.debug('Initialization successful');
|
||||
release().catch(core.setFailed);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ const __dirname = dirname(__filename);
|
|||
* Install Specifying Version semantic-release
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
module.exports = async () => {
|
||||
export default async () => {
|
||||
const semantic_version = core.getInput(inputs.semantic_version);
|
||||
const versionSuffix = semantic_version
|
||||
? `@${semantic_version}`
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const __dirname = dirname(__filename);
|
|||
* Pre-install extra dependecies
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
module.exports = async extras => {
|
||||
export default async extras => {
|
||||
if (!extras) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const __dirname = dirname(__filename);
|
|||
* setUpJob
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
module.exports = async () => {
|
||||
export default async () => {
|
||||
// set outputs default
|
||||
core.setOutput(outputs.new_release_published, 'false');
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import outputs from './outputs.json';
|
|||
* @param result
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
module.exports = async (result) => {
|
||||
export default async (result) => {
|
||||
const resolved = await result;
|
||||
if (!resolved) {
|
||||
core.debug('No release published.');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue