Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
outloudvi committed May 12, 2023
1 parent d5ffa18 commit 70af634
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": true,
"trailingComma": "es5"
}
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ async function main() {
finalFilename = getFilenameFromUrl(url);
}
if (finalFilename === "") {
core.setFailed("Filename not found. Please indicate it in the URL or set `filename` in the workflow.");
core.setFailed(
"Filename not found. Please indicate it in the URL or set `filename` in the workflow."
);
return;
}
fs.writeFileSync(path.join(target, finalFilename), body);
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
"node-fetch": "^2.6.11"
},
"devDependencies": {
"@vercel/ncc": "^0.34.0"
"@vercel/ncc": "^0.34.0",
"prettier": "^2.8.8"
},
"name": "actions-download-file",
"scripts": {
"build": "ncc build"
"build": "ncc build",
"format": "prettier --write ./index.js"
},
"keywords": [
"github",
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 70af634

Please sign in to comment.