This repository was archived by the owner on Jul 12, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +16
-10
lines changed Expand file tree Collapse file tree 5 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,19 @@ name: 'Docs Builds'
2
2
description : ' Builds docs and pushes them to a separate branch'
3
3
author : ' Spectacles'
4
4
inputs :
5
- docsOutput :
5
+ docs-output :
6
6
description : Location of the generated docs files.
7
7
default : docs
8
8
branch :
9
9
description : Target branch to push docs to.
10
10
default : gh-pages
11
- targetDirectory :
11
+ target-directory :
12
12
description : Directory in which to place docs files.
13
13
default : echo ${{ github.ref }} | cut -d / -f 3-
14
- docsCommand :
14
+ docs-command :
15
15
description : Command that generates the docs files.
16
16
default : npm run docs
17
- githubToken :
17
+ github-token :
18
18
description : Your GitHub token to deploy docs with.
19
19
required : true
20
20
runs :
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ which('bash', true).then(bash => {
6
6
return exec ( bash , [ 'docs.sh' ] , {
7
7
env : {
8
8
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 ' ) ,
13
13
} ,
14
14
} ) ;
15
15
} ) . catch ( error => {
Original file line number Diff line number Diff line change 5
5
"main" : " dist/index.js" ,
6
6
"scripts" : {
7
7
"test" : " echo \" Error: no test specified\" && exit 1" ,
8
- "build" : " tsc "
8
+ "build" : " ncc build --minify index.ts -o dist "
9
9
},
10
10
"repository" : {
11
11
"type" : " git" ,
24
24
"@actions/io" : " ^1.0.1"
25
25
},
26
26
"devDependencies" : {
27
+ "@zeit/ncc" : " ^0.20.5" ,
27
28
"typescript" : " ^3.7.2"
28
29
}
29
30
}
Original file line number Diff line number Diff line change 2
2
"compilerOptions" : {
3
3
"alwaysStrict" : true ,
4
4
"declaration" : false ,
5
- "inlineSourceMap" : true ,
5
+ "inlineSourceMap" : false ,
6
6
"lib" : [" es2019" ],
7
7
"module" : " commonjs" ,
8
8
"moduleResolution" : " node" ,
Original file line number Diff line number Diff line change 95
95
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.14.tgz#1c1d6e3c75dba466e0326948d56e8bd72a1903d2"
96
96
integrity sha512-u/SJDyXwuihpwjXy7hOOghagLEV1KdAST6syfnOk6QZAMzZuWZqXy5aYYZbh8Jdpd4escVFP0MvftHNDb9pruA==
97
97
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
+
98
103
atob-lite@^2.0.0 :
99
104
version "2.0.0"
100
105
resolved "https://registry.yarnpkg.com/atob-lite/-/atob-lite-2.0.0.tgz#0fef5ad46f1bd7a8502c65727f0367d5ee43d696"
You can’t perform that action at this time.
0 commit comments