Skip to content

Commit eaf9e0b

Browse files
authored
Merge pull request #81 from kreuzerk/feature/gitHubActions
chore: 🤖 (CI) migrate to GitHub actions
2 parents 667a80f + b68e2b7 commit eaf9e0b

File tree

3 files changed

+46
-19
lines changed

3 files changed

+46
-19
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: feature-branch
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
- '*/*'
7+
- '**'
8+
- '!master'
9+
jobs:
10+
CI:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Install Node & NPM
16+
uses: actions/setup-node@v3
17+
- name: Install node modules
18+
run: npm install
19+
- name: Test
20+
run: npm run test

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: release
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
with:
13+
persist-credentials: false
14+
- name: Install Node & NPM
15+
uses: actions/setup-node@v3
16+
- name: Install node_modules
17+
run: npm install
18+
- name: Test
19+
run: npm run test
20+
- name: Build
21+
run: npm run build
22+
- name: Release
23+
uses: cycjimmy/semantic-release-action@v3
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
26+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.travis.yml

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

0 commit comments

Comments
 (0)