Skip to content

Commit 01ddabb

Browse files
committed
Update Node in Actions
1 parent b44f133 commit 01ddabb

File tree

1 file changed

+6
-39
lines changed

1 file changed

+6
-39
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,18 @@ on:
44
- push
55
jobs:
66
main:
7-
name: '${{ matrix.node }}'
7+
name: ${{matrix.node}}
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
11-
- uses: dcodeIO/setup-node-nvm@master
11+
- uses: actions/setup-node@v2
1212
with:
13-
node-version: ${{ matrix.node }}
13+
node-version: ${{matrix.node}}
1414
- run: npm install
15-
- run: npm test && ./cli.js readme.md --why --quiet
15+
- run: npm test
1616
- uses: codecov/codecov-action@v1
1717
strategy:
1818
matrix:
1919
node:
20-
- lts/dubnium
21-
- node
22-
release:
23-
if: startsWith(github.ref, 'refs/tags/')
24-
name: release
25-
runs-on: ubuntu-latest
26-
steps:
27-
- uses: actions/checkout@v2
28-
- uses: dcodeIO/setup-node-nvm@master
29-
with:
30-
node-version: node
31-
- run: npm install
32-
- run: npm run build
33-
- id: release
34-
uses: actions/create-release@v1
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
with:
38-
tag_name: ${{ github.ref }}
39-
- uses: actions/upload-release-asset@v1
40-
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
with:
43-
upload_url: ${{ steps.release.outputs.upload_url }}
44-
asset_path: alex.js
45-
asset_name: alex.js
46-
asset_content_type: application/javascript
47-
- uses: actions/upload-release-asset@v1
48-
env:
49-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
with:
51-
upload_url: ${{ steps.release.outputs.upload_url }}
52-
asset_path: alex.min.js
53-
asset_name: alex.min.js
54-
asset_content_type: application/javascript
20+
- lts/erbium
21+
- '*'

0 commit comments

Comments
 (0)