Release from master

This commit is contained in:
Danny McCormick 2019-08-21 22:58:23 -04:00
parent 5273d0df9c
commit 8de2f9fcbc
34 changed files with 371 additions and 293 deletions

View file

@ -1,5 +1,9 @@
# setup-node
<p align="left">
<a href="https://github.com/actions/setup-node"><img alt="GitHub Actions status" src="https://github.com/actions/setup-node/workflows/Main%20workflow/badge.svg"></a>
</p>
This action sets by node environment for use in actions by:
- optionally downloading and caching a version of node - npm by version spec and add to PATH
@ -15,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
```
@ -34,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
```
@ -45,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
@ -65,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