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
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ This action provides the following functionality for GitHub Actions users:
11
11
- Registering problem matchers for error output
12
12
- Configuring authentication for GPR or npm
13
13
14
-
# Usage
14
+
##Usage
15
15
16
16
See [action.yml](action.yml)
17
17
@@ -22,7 +22,7 @@ steps:
22
22
- uses: actions/checkout@v3
23
23
- uses: actions/setup-node@v3
24
24
with:
25
-
node-version: '14'
25
+
node-version: 14
26
26
- run: npm install
27
27
- run: npm test
28
28
```
@@ -33,7 +33,7 @@ The action will first check the local cache for a semver match. If unable to fin
33
33
34
34
For information regarding locally cached versions of Node.js on GitHub hosted runners, check out [GitHub Actions Virtual Environments](https://github.com/actions/virtual-environments).
35
35
36
-
#### Supported version syntax
36
+
### Supported version syntax
37
37
38
38
The `node-version` input supports the following syntax:
39
39
@@ -49,7 +49,7 @@ The action defaults to search for the dependency file (`package-lock.json` or `y
49
49
50
50
**Note:** The action does not cache `node_modules`
51
51
52
-
See the examples of using cache for `yarn` / `pnpm` and `cache-dependency-path` input in the [Advanced usage](docs/advanced-usage.md#caching-packages-dependencies) guide.
52
+
See the examples of using cache for `yarn`/`pnpm` and `cache-dependency-path` input in the [Advanced usage](docs/advanced-usage.md#caching-packages-data) guide.
Copy file name to clipboardExpand all lines: action.yml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,35 @@
1
1
name: 'Setup Node.js environment'
2
-
description: 'Setup a Node.js environment by adding problem matchers and optionally downloading and adding it to the PATH'
2
+
description: 'Setup a Node.js environment by adding problem matchers and optionally downloading and adding it to the PATH.'
3
3
author: 'GitHub'
4
4
inputs:
5
5
always-auth:
6
-
description: 'Set always-auth in npmrc'
6
+
description: 'Set always-auth in npmrc.'
7
7
default: 'false'
8
8
node-version:
9
-
description: 'Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0'
9
+
description: 'Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.'
10
10
node-version-file:
11
-
description: 'File containing the version Spec of the version to use. Examples: .nvmrc, .node-version'
11
+
description: 'File containing the version Spec of the version to use. Examples: .nvmrc, .node-version.'
12
12
architecture:
13
13
description: 'Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default.'
14
14
check-latest:
15
-
description: 'Set this option if you want the action to check for the latest available version that satisfies the version spec'
15
+
description: 'Set this option if you want the action to check for the latest available version that satisfies the version spec.'
16
16
default: false
17
17
registry-url:
18
-
description: 'Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN'
18
+
description: 'Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN.'
19
19
scope:
20
-
description: 'Optional scope for authenticating against scoped registries'
20
+
description: '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/).'
21
21
token:
22
22
description: Used to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user.
23
23
default: ${{ github.token }}
24
24
cache:
25
-
description: 'Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm'
25
+
description: 'Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm.'
26
26
cache-dependency-path:
27
27
description: 'Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. Supports wildcards or a list of file names for caching multiple dependencies.'
28
28
# TODO: add input to control forcing to pull from cloud or dist.
29
29
# escape valve for someone having issues or needing the absolute latest which isn't cached yet
30
30
outputs:
31
31
cache-hit:
32
-
description: 'A boolean value to indicate if a cache was hit'
32
+
description: 'A boolean value to indicate if a cache was hit.'
0 commit comments