This repository was archived by the owner on Jul 12, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,19 +2,19 @@ name: 'Docs Builds'
22description : ' Builds docs and pushes them to a separate branch'
33author : ' Spectacles'
44inputs :
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
2020runs :
Original file line number Diff line number Diff 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 => {
Original file line number Diff line number Diff line change 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" ,
2424 "@actions/io" : " ^1.0.1"
2525 },
2626 "devDependencies" : {
27+ "@zeit/ncc" : " ^0.20.5" ,
2728 "typescript" : " ^3.7.2"
2829 }
2930}
Original file line number Diff line number Diff line change 22 "compilerOptions" : {
33 "alwaysStrict" : true ,
44 "declaration" : false ,
5- "inlineSourceMap" : true ,
5+ "inlineSourceMap" : false ,
66 "lib" : [" es2019" ],
77 "module" : " commonjs" ,
88 "moduleResolution" : " node" ,
Original file line number Diff line number Diff line change 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+
98103atob-lite@^2.0.0 :
99104 version "2.0.0"
100105 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