Skip to content

Commit 49e9ed4

Browse files
committed
build: update build-check and publich YML files
1 parent 5968e98 commit 49e9ed4

File tree

2 files changed

+34
-18
lines changed

2 files changed

+34
-18
lines changed

.github/workflows/build-check.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
name: Build Check
22

3-
on:
4-
pull_request:
5-
branches: [ master, develop ]
3+
on: pull_request
64

75
jobs:
86
build_check:
97
runs-on: ubuntu-latest
108
strategy:
119
matrix:
12-
node: [ '14', '13', '12' ]
10+
node: [ '15' ]
11+
name: Node ${{ matrix.node }}
1312
steps:
1413
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
14+
- name: Setup node
15+
uses: actions/setup-node@v2
1616
with:
17-
version: ${{ matrix.node }}
18-
- run: npm ci
19-
- run: npm run lint
20-
- run: npm test
21-
- run: npm run build
17+
node-version: ${{ matrix.node }}
18+
- name: Installing dependencies
19+
run: npm ci
20+
- name: Testing
21+
run: npm test
22+
- name: Building
23+
run: npm run build
24+

.github/workflows/publish.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,39 @@ on:
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11+
1112
steps:
1213
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v1
14+
15+
- name: Setup node
16+
uses: actions/setup-node@v2
1417
with:
15-
version: 12
16-
- run: npm ci
17-
- run: npm test
18-
- run: npm run build
19-
- run: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
18+
node-version: 15.x
19+
20+
- name: Installing dependencies
21+
run: npm ci
22+
23+
- name: Building
24+
run: npm run build
25+
26+
- name: Preparing to publish
27+
run: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
2028
env:
2129
CI: true
2230
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23-
- run: npm run semantic-release
31+
32+
- name: Publish
33+
run: npm run semantic-release
2434
env:
2535
CI: true
2636
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
2737
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2838
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
40+
- name: publish coverage
2941
- uses: coverallsapp/github-action@v1.1.1
3042
with:
31-
github-token: ${{ secrets.GH_TOKEN }}
43+
github-token: ${{ secrets.GITHUB_TOKEN }}
44+
path-to-lcov: ./coverage/lcov.info
3245
env:
3346
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}

0 commit comments

Comments
 (0)