mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2026-05-14 04:20:33 +00:00
more fixes and tweaks cjs -> esm
This commit is contained in:
parent
f7e83f6743
commit
61436fbfef
9 changed files with 20 additions and 20 deletions
4
index.js
4
index.js
|
|
@ -1,5 +1,5 @@
|
|||
const exec = require('./src/_exec');
|
||||
const path = require('path');
|
||||
import exec from './src/_exec';
|
||||
import path from 'path';
|
||||
|
||||
const run = async () => {
|
||||
// Install Dependencies
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
const util = require('util');
|
||||
import util from 'util';
|
||||
module.exports = util.promisify(require('child_process').exec);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const io = require('@actions/io');
|
||||
import io from '@actions/io';
|
||||
|
||||
/**
|
||||
* Clean up `.npmrc` file in the repo after releasing
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import * as core from '@actions/core'
|
||||
const stringToJson = require('@cycjimmy/awesome-js-funcs/cjs/typeConversion/stringToJson.cjs').default;
|
||||
const inputs = require('./inputs.json');
|
||||
import * as core from '@actions/core';
|
||||
import stringToJson from '@cycjimmy/awesome-js-funcs/cjs/typeConversion/stringToJson.cjs';
|
||||
import inputs from './inputs.json';
|
||||
|
||||
/**
|
||||
* Handle Branches Option
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import * as core from '@actions/core'
|
||||
import * as core from '@actions/core';
|
||||
import {
|
||||
handleBranchesOption,
|
||||
handleDryRunOption,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
const path = require('path');
|
||||
import * as core from '@actions/core'
|
||||
const exec = require('./_exec');
|
||||
const inputs = require('./inputs.json');
|
||||
import path from 'path';
|
||||
import * as core from '@actions/core';
|
||||
import exec from './_exec';
|
||||
import inputs from './inputs.json';
|
||||
|
||||
/**
|
||||
* Install Specifying Version semantic-release
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const path = require('path');
|
||||
import * as core from '@actions/core'
|
||||
const exec = require('./_exec');
|
||||
import path from 'path';
|
||||
import * as core from '@actions/core';
|
||||
import exec from './_exec';
|
||||
|
||||
/**
|
||||
* Pre-install extra dependecies
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const path = require('path');
|
||||
import * as core from '@actions/core'
|
||||
const outputs = require('./outputs.json');
|
||||
import path from 'path';
|
||||
import * as core from '@actions/core';
|
||||
import outputs from './outputs.json';
|
||||
|
||||
/**
|
||||
* setUpJob
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import * as core from '@actions/core'
|
||||
const outputs = require('./outputs.json');
|
||||
import * as core from '@actions/core';
|
||||
import outputs from './outputs.json';
|
||||
|
||||
/**
|
||||
* windUpJob
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue