mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-14 16:01:11 +00:00
Use node-version instead of version
This commit is contained in:
parent
d963e800e3
commit
ff2076a23f
4 changed files with 18 additions and 9 deletions
|
@ -19,7 +19,7 @@ steps:
|
|||
- uses: actions/checkout@master
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
version: '10.x'
|
||||
node-version: '10.x'
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
```
|
||||
|
@ -38,7 +38,7 @@ jobs:
|
|||
- name: Setup node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
version: ${{ matrix.node }}
|
||||
node-version: ${{ matrix.node }}
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
```
|
||||
|
@ -49,7 +49,7 @@ steps:
|
|||
- uses: actions/checkout@master
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
version: '10.x'
|
||||
node-version: '10.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: npm install
|
||||
- run: npm publish
|
||||
|
@ -69,7 +69,7 @@ steps:
|
|||
- uses: actions/checkout@master
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
version: '10.x'
|
||||
node-version: '10.x'
|
||||
registry-url: <registry url>
|
||||
- run: npm install -g yarn
|
||||
- run: yarn install
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue