You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ This action installs [volta](https://volta.sh) by:
18
18
| node-version | Version Spec of the node version to use. Examples: 10.6.x, 10.15.1, >=10.15.0 |`false`||
19
19
| npm-version | Version Spec of the npm version to use. Examples: 7.5.x, 7.5.3, >=7.5.3 |`false`||
20
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`||
21
+
|variant|Specific variant to install. Example: providing the variant "linux-openssl-rhel", which will target installing the volta-${version}-linux-openssl-rhel.tar.gz tarball|`false`||
22
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
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
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 }} |
@@ -91,6 +91,21 @@ steps:
91
91
- run: npm test
92
92
```
93
93
94
+
In some cases, you may know the particular variant of the installer that you want to use for Volta. You can specify the `variant` input to the action to use a specific installer:
95
+
96
+
```yaml
97
+
steps:
98
+
- uses: actions/checkout@v3
99
+
- uses: volta-cli/action@v3
100
+
with:
101
+
variant: 'linux-openssl-rhel'
102
+
103
+
- run: yarn install
104
+
- run: yarn test
105
+
```
106
+
107
+
The `variant` fragment corresponds to a portion of the installer filename, and can be found in the [Volta Releases](https://github.com/volta-cli/action/releases) page.
108
+
94
109
## License
95
110
96
111
The scripts and documentation in this project are released under the [MIT License](LICENSE)
Copy file name to clipboardExpand all lines: action.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@ inputs:
14
14
yarn-version:
15
15
description: 'Version Spec of the yarn version to use. Examples: 1.6.x, 10.15.1, >=10.15.0'
16
16
default: ''
17
-
openssl-version:
18
-
description: 'Version Spec of the openssl version to use. Examples: 1.0, 1.1'
17
+
variant:
18
+
description: 'Specific variant to install. Example: providing the variant "linux-openssl-rhel", which will target installing the volta-${version}-linux-openssl-rhel.tar.gz tarball'
19
19
default: ''
20
20
registry-url:
21
21
description: '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'
0 commit comments