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

Commit

Permalink
Merge pull request #2 from ng-web-apis/feature/releases
Browse files Browse the repository at this point in the history
ci: prepare for semantic releases
  • Loading branch information
IKatsuba authored Nov 22, 2020
2 parents 84cb368 + e627301 commit 1b75cdd
Show file tree
Hide file tree
Showing 8 changed files with 8,215 additions and 3,277 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Pull Request

on:
pull_request:
branches:
- master
- next
- beta

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Build
run: |
npm ci
npm run build
npm run build:demo:client
env:
CI: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Lint
run: |
npm ci
npm run lint
env:
CI: true
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Test
run: |
npm ci
npm test
env:
CI: true
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token : ${{secrets.GITHUB_TOKEN}}
path-to-lcov: ./coverage/workers/lcov.info
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
branches:
- master
- next
- beta

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: npm install
run: |
npm ci
env:
CI: true
- name: Release
run: |
npm run build
npm run release
env:
CI: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
13 changes: 13 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"pkgRoot": "./dist/workers"
}
],
"@semantic-release/github"
]
}
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 1b75cdd

Please sign in to comment.