Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Commit 1b75cdd

Browse files
authored
Merge pull request #2 from ng-web-apis/feature/releases
ci: prepare for semantic releases
2 parents 84cb368 + e627301 commit 1b75cdd

File tree

8 files changed

+8215
-3277
lines changed

8 files changed

+8215
-3277
lines changed

.github/workflows/pr.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- next
8+
- beta
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Use Node.js 12.x
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 12.x
19+
- name: Build
20+
run: |
21+
npm ci
22+
npm run build
23+
npm run build:demo:client
24+
env:
25+
CI: true
26+
lint:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v1
30+
- name: Use Node.js 12.x
31+
uses: actions/setup-node@v1
32+
with:
33+
node-version: 12.x
34+
- name: Lint
35+
run: |
36+
npm ci
37+
npm run lint
38+
env:
39+
CI: true
40+
test:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v1
44+
- name: Use Node.js 12.x
45+
uses: actions/setup-node@v1
46+
with:
47+
node-version: 12.x
48+
- name: Test
49+
run: |
50+
npm ci
51+
npm test
52+
env:
53+
CI: true
54+
- name: Coveralls
55+
uses: coverallsapp/github-action@master
56+
with:
57+
github-token : ${{secrets.GITHUB_TOKEN}}
58+
path-to-lcov: ./coverage/workers/lcov.info

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- next
8+
- beta
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Use Node.js 12.x
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 12.x
19+
- name: npm install
20+
run: |
21+
npm ci
22+
env:
23+
CI: true
24+
- name: Release
25+
run: |
26+
npm run build
27+
npm run release
28+
env:
29+
CI: true
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.releaserc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
[
6+
"@semantic-release/npm",
7+
{
8+
"pkgRoot": "./dist/workers"
9+
}
10+
],
11+
"@semantic-release/github"
12+
]
13+
}

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)