diff --git a/github-action/action.yml b/github-action/action.yml new file mode 100644 index 0000000..c20a007 --- /dev/null +++ b/github-action/action.yml @@ -0,0 +1,14 @@ +name: 'typedocusaurus' +description: 'Generate Typedoc to Docusaurus.' +inputs: + originPath: + required: true + sidebarFile: + required: true + targetPath: + required: true + docusaurusPath: + required: true +runs: + using: 'node12' + main: 'dist/index.js' \ No newline at end of file diff --git a/github-action/package.json b/github-action/package.json new file mode 100644 index 0000000..1de0e60 --- /dev/null +++ b/github-action/package.json @@ -0,0 +1,13 @@ +{ + "name": "typedocusaurus-action", + "version": "1.0.0", + "license": "MIT", + "scripts": { + "run-source": "node index.js", + "build": "ncc build index.js -o dist" + }, + "dependencies": { + "@actions/core": "^1.2.6", + "@zeit/ncc": "^0.22.3" + } +} \ No newline at end of file diff --git a/github-action/yarn.lock b/github-action/yarn.lock new file mode 100644 index 0000000..af8418e --- /dev/null +++ b/github-action/yarn.lock @@ -0,0 +1,13 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@actions/core@^1.2.6": + version "1.2.6" + resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.2.6.tgz#a78d49f41a4def18e88ce47c2cac615d5694bf09" + integrity sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA== + +"@zeit/ncc@^0.22.3": + version "0.22.3" + resolved "https://registry.yarnpkg.com/@zeit/ncc/-/ncc-0.22.3.tgz#fca6b86b4454ce7a7e1e7e755165ec06457f16cd" + integrity sha512-jnCLpLXWuw/PAiJiVbLjA8WBC0IJQbFeUwF4I9M+23MvIxTxk5pD4Q8byQBSPmHQjz5aBoA7AKAElQxMpjrCLQ==