Skip to content

Commit d2144c3

Browse files
committed
chore: modify github actions
1 parent 5a0d5c9 commit d2144c3

File tree

2 files changed

+17
-21
lines changed

2 files changed

+17
-21
lines changed

β€Ž.github/workflows/coverage.ymlβ€Ž

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,27 @@ name: '🦊 Coverage'
22

33
on:
44
push:
5-
branches: [master, dev]
5+
branches: [master,dev]
66
pull_request:
77
branches: [master,dev]
8-
env:
9-
CI: true
108

119
jobs:
1210
build:
1311
name: Build
1412
runs-on: ubuntu-latest
1513
steps:
16-
17-
- uses: actions/checkout@v1
18-
19-
- name: Use Node.js 14
20-
uses: actions/setup-node@v1
21-
with:
22-
node-version: 14
23-
24-
- name: npm install, make test-coverage
25-
run: |
26-
npm install
27-
npm run test:coveralls
28-
29-
- name: Coveralls
30-
uses: coverallsapp/github-action@master
31-
with:
32-
github-token: ${{secrets.GITHUB_TOKEN}}
14+
- name: πŸ“š Check out Git repository
15+
uses: actions/checkout@v2
16+
- name: 🟒 Setup Node.js
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 16
20+
- name: πŸ›  Install dependencies
21+
run: npm install
22+
- name: βš™οΈ Create coverage
23+
run: npm run test:coveralls
24+
- name: Coveralls
25+
uses: coverallsapp/github-action@master
26+
with:
27+
COVERALLS_REPO_TOKEN: ${{secrets.COVERALLS_REPO_TOKEN}}
28+
github-token: ${{secrets.GITHUB_TOKEN}}

β€Ž.github/workflows/publish.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
node-version: 16
2020
registry-url: 'https://registry.npmjs.org'
21-
- name: πŸ›  Install Node.js dependencies
21+
- name: πŸ›  Install dependencies
2222
run: npm install
2323
- name: πŸ“¦ Publish package to NPM
2424
run: npm publish

0 commit comments

Comments
Β (0)