Skip to content

Commit

Permalink
fix: empty commit for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Jul 11, 2022
1 parent 49a3ba0 commit 86f83f5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/generate-releaserc-file/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/actions/generate-releaserc-file/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:
id: releaserc-creation
with:
npmPlugin: true
files: '[ "package.json", "dist/**/*.{js,css}" ]'
files: '["package.json","dist/**/*.{js,css}"]'

- name: Docs | .releaserc.json
if: inputs.autoVersioning == true && steps.node_setup.outputs.has_releaserc == 'false'
Expand Down
9 changes: 5 additions & 4 deletions src/actions/generate-releaserc-file/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const path = require("path");
const core = require("@actions/core");

async function action() {
let defaultBranch = core.getInput('defaultBranch', { required: false });
let files = JSON.parse(core.getInput('files', { required: true }))
let defaultBranch = core.getInput('defaultBranch', { required: true });
let files = JSON.parse(core.getInput('files', { required: false }))
let npmPlugin = core.getBooleanInput('npmPlugin', { required: false });

let plugins = [
Expand Down Expand Up @@ -61,9 +61,10 @@ async function action() {
plugins,
};

releaseFile = JSON.stringify(releaseFile, null, 2);
fs.writeFileSync(path.join(process.cwd(), ".releaserc.json"), JSON.stringify(releaseFile, null, 2));

fs.writeFileSync(path.join(process.cwd(), ".releaserc.json"), releaseFile);
let x = fs.readFileSync(path.join(process.cwd(), ".releaserc.json"));
core.warning(`content = ${x}`)
}

try {
Expand Down

0 comments on commit 86f83f5

Please sign in to comment.