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
+12-12Lines changed: 12 additions & 12 deletions
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-data) 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.
53
53
54
54
**Caching npm dependencies:**
55
55
@@ -58,7 +58,7 @@ steps:
58
58
- uses: actions/checkout@v3
59
59
- uses: actions/setup-node@v3
60
60
with:
61
-
node-version: '14'
61
+
node-version: 14
62
62
cache: 'npm'
63
63
- run: npm install
64
64
- run: npm test
@@ -71,22 +71,22 @@ steps:
71
71
- uses: actions/checkout@v3
72
72
- uses: actions/setup-node@v3
73
73
with:
74
-
node-version: '14'
74
+
node-version: 14
75
75
cache: 'npm'
76
76
cache-dependency-path: subdir/package-lock.json
77
77
- run: npm install
78
78
- run: npm test
79
79
```
80
80
81
-
## Matrix Testing:
81
+
## Matrix Testing
82
82
83
83
```yaml
84
84
jobs:
85
85
build:
86
86
runs-on: ubuntu-latest
87
87
strategy:
88
88
matrix:
89
-
node: [ '12', '14', '16' ]
89
+
node: [ 12, 14, 16 ]
90
90
name: Node ${{ matrix.node }} sample
91
91
steps:
92
92
- uses: actions/checkout@v3
@@ -109,14 +109,14 @@ jobs:
109
109
7. [Publishing to npmjs and GPR with yarn](docs/advanced-usage.md#publish-to-npmjs-and-gpr-with-yarn)
0 commit comments