Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Commit eea3de6

Browse files
author
Will Nelson
committed
Update inputs
1 parent a9724da commit eea3de6

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ name: 'Docs Builds'
22
description: 'Builds docs and pushes them to a separate branch'
33
author: 'Spectacles'
44
inputs:
5-
docsOutput:
5+
docs-output:
66
description: Location of the generated docs files.
77
default: docs
88
branch:
99
description: Target branch to push docs to.
1010
default: gh-pages
11-
targetDirectory:
11+
target-directory:
1212
description: Directory in which to place docs files.
1313
default: echo ${{ github.ref }} | cut -d / -f 3-
14-
docsCommand:
14+
docs-command:
1515
description: Command that generates the docs files.
1616
default: npm run docs
17-
githubToken:
17+
github-token:
1818
description: Your GitHub token to deploy docs with.
1919
required: true
2020
runs:

index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ which('bash', true).then(bash => {
66
return exec(bash, ['docs.sh'], {
77
env: {
88
REPO: `https://${process.env.GITHUB_ACTOR}:${getInput('githubToken')}@github.com/${process.env.GITHUB_REPOSITORY}.git`,
9-
DOCS_DIRECTORY: getInput('docsDirectory'),
10-
TARGET_BRANCH: getInput('targetBranch'),
11-
TARGET_DIRECTORY: getInput('targetDirectory'),
12-
DOCS_COMMAND: getInput('docsCommand'),
9+
DOCS_DIRECTORY: getInput('docs-directory'),
10+
TARGET_BRANCH: getInput('target-branch'),
11+
TARGET_DIRECTORY: getInput('target-directory'),
12+
DOCS_COMMAND: getInput('docs-command'),
1313
},
1414
});
1515
}).catch(error => {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "dist/index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"build": "tsc"
8+
"build": "ncc build --minify index.ts -o dist"
99
},
1010
"repository": {
1111
"type": "git",
@@ -24,6 +24,7 @@
2424
"@actions/io": "^1.0.1"
2525
},
2626
"devDependencies": {
27+
"@zeit/ncc": "^0.20.5",
2728
"typescript": "^3.7.2"
2829
}
2930
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"alwaysStrict": true,
44
"declaration": false,
5-
"inlineSourceMap": true,
5+
"inlineSourceMap": false,
66
"lib": ["es2019"],
77
"module": "commonjs",
88
"moduleResolution": "node",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@
9595
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.14.tgz#1c1d6e3c75dba466e0326948d56e8bd72a1903d2"
9696
integrity sha512-u/SJDyXwuihpwjXy7hOOghagLEV1KdAST6syfnOk6QZAMzZuWZqXy5aYYZbh8Jdpd4escVFP0MvftHNDb9pruA==
9797

98+
"@zeit/ncc@^0.20.5":
99+
version "0.20.5"
100+
resolved "https://registry.yarnpkg.com/@zeit/ncc/-/ncc-0.20.5.tgz#a41af6e6bcab4a58f4612bae6137f70bce0192e3"
101+
integrity sha512-XU6uzwvv95DqxciQx+aOLhbyBx/13ky+RK1y88Age9Du3BlA4mMPCy13BGjayOrrumOzlq1XV3SD/BWiZENXlw==
102+
98103
atob-lite@^2.0.0:
99104
version "2.0.0"
100105
resolved "https://registry.yarnpkg.com/atob-lite/-/atob-lite-2.0.0.tgz#0fef5ad46f1bd7a8502c65727f0367d5ee43d696"

0 commit comments

Comments
 (0)