mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
chore(docs): update action versions in readme
This commit is contained in:
parent
ed960c9656
commit
1f4bbf386f
1 changed files with 11 additions and 11 deletions
22
README.md
22
README.md
|
@ -18,10 +18,10 @@ See [action.yml](action.yml)
|
|||
**Basic:**
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '14'
|
||||
node-version: '16'
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
```
|
||||
|
@ -50,10 +50,10 @@ See the examples of using cache for `yarn` / `pnpm` and `cache-dependency-path`
|
|||
**Caching npm dependencies:**
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '14'
|
||||
node-version: '16'
|
||||
cache: 'npm'
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
|
@ -62,10 +62,10 @@ steps:
|
|||
**Caching npm dependencies in monorepos:**
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '14'
|
||||
node-version: '16'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: subdir/package-lock.json
|
||||
- run: npm install
|
||||
|
@ -82,9 +82,9 @@ jobs:
|
|||
node: [ '12', '14', '16' ]
|
||||
name: Node ${{ matrix.node }} sample
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- run: npm install
|
||||
|
|
Loading…
Add table
Reference in a new issue