Skip to content

Commit 8a57e41

Browse files
scalvertrwjblue
andcommitted
Add action-docs updater
- Add `action-docs` and related marking scripts to README - Add `build:docs` script - Update `build` script to also ensure `action-docs` is ran Co-authored-by: Robert Jackson <[email protected]>
1 parent 0791791 commit 8a57e41

File tree

3 files changed

+97
-3
lines changed

3 files changed

+97
-3
lines changed

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,26 @@ This action installs [volta](https://volta.sh) by:
99
- downloading and caching volta (adding it to your $PATH)
1010
- optionally downloading and caching a version of node - npm by version spec and add to PATH
1111

12-
# Usage
12+
<!-- action-docs-inputs -->
13+
## Inputs
14+
15+
| parameter | description | required | default |
16+
| - | - | - | - |
17+
| volta-version | Version Spec of the volta version to use. Examples: 0.6.x, 10.15.1, >=10.15.0 | `false` | |
18+
| node-version | Version Spec of the node version to use. Examples: 10.6.x, 10.15.1, >=10.15.0 | `false` | |
19+
| npm-version | Version Spec of the npm version to use. Examples: 7.5.x, 7.5.3, >=7.5.3 | `false` | |
20+
| yarn-version | Version Spec of the yarn version to use. Examples: 1.6.x, 10.15.1, >=10.15.0 | `false` | |
21+
| openssl-version | Version Spec of the openssl version to use. Examples: 1.0, 1.1 | `false` | |
22+
| registry-url | Optional registry to set up for auth. Will set the registry in a project level .npmrc file, and set up auth to read in from env.NODE_AUTH_TOKEN | `false` | |
23+
| scope | Optional scope for authenticating against scoped registries. Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/). | `false` | |
24+
| token | Used to avoid low rate limiting for cached tool downloads. Since there's a default, this is typically not supplied by the user. | `false` | ${{ github.token }} |
25+
| always-auth | Set always-auth in npmrc | `false` | false |
26+
27+
28+
29+
<!-- action-docs-inputs -->
30+
31+
## Usage
1332

1433
See [action.yml](action.yml)
1534

@@ -72,6 +91,6 @@ steps:
7291
- run: npm test
7392
```
7493

75-
# License
94+
## License
7695

7796
The scripts and documentation in this project are released under the [MIT License](LICENSE)

package-lock.json

Lines changed: 73 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
"type": "module",
1818
"main": "dist/index.js",
1919
"scripts": {
20-
"build": "npm-run-all build:clean build:ts build:dist",
20+
"build": "npm-run-all build:clean build:ts build:dist build:docs",
2121
"build:clean": "rimraf dist lib",
2222
"build:dist": "ncc build src/index.ts",
2323
"build:ts": "tsc",
24+
"build:docs": "action-docs --update-readme",
2425
"lint": "npm-run-all lint:*",
2526
"lint:files": "eslint --cache .",
2627
"lint:types": "tsc --noEmit",
@@ -41,6 +42,7 @@
4142
"@typescript-eslint/eslint-plugin": "^5.33.0",
4243
"@typescript-eslint/parser": "^5.33.0",
4344
"@vercel/ncc": "^0.34.0",
45+
"action-docs": "^1.0.4",
4446
"broccoli-test-helper": "^2.0.0",
4547
"eslint": "^8.21.0",
4648
"eslint-config-prettier": "^8.5.0",

0 commit comments

Comments
 (0)