Skip to content

Commit bda1b48

Browse files
committed
fix workflow
1 parent 7ff1c03 commit bda1b48

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/nodejs-beta.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ on:
99
- beta
1010

1111
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/[email protected]
16+
- uses: actions/[email protected]
17+
with:
18+
node-version: 14
19+
- name: npm install
20+
run: |
21+
npm install
22+
env:
23+
CI: true
24+
1225
publish-npm:
1326
if: github.repository == 'OpenWonderLabs/node-switchbot'
1427

.github/workflows/nodejs.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,26 @@ on:
88
types: [created]
99

1010
jobs:
11+
build:
12+
strategy:
13+
matrix:
14+
node-version: [12.x, 13.x, 14.x, 15.x]
15+
os: [ubuntu-latest]
16+
17+
runs-on: ${{ matrix.os }}
18+
19+
steps:
20+
- uses: actions/[email protected]
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/[email protected]
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- name: npm install
26+
run: |
27+
npm install
28+
env:
29+
CI: true
30+
1131
publish-npm:
1232
# publish only if we are on our own repo, event was 'release' (a tag was created) and the tag starts with "v" (aka version tag)
1333
if: github.repository == 'OpenWonderLabs/node-switchbot' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)