Skip to content

Commit

Permalink
Merge pull request #81 from kreuzerk/feature/gitHubActions
Browse files Browse the repository at this point in the history
chore: 🤖 (CI) migrate to GitHub actions
  • Loading branch information
nivekcode authored Jun 25, 2022
2 parents 667a80f + b68e2b7 commit eaf9e0b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 19 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: feature-branch
on:
push:
branches:
- '*'
- '*/*'
- '**'
- '!master'
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node & NPM
uses: actions/setup-node@v3
- name: Install node modules
run: npm install
- name: Test
run: npm run test
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release
on:
push:
branches:
- 'master'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install Node & NPM
uses: actions/setup-node@v3
- name: Install node_modules
run: npm install
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: Release
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

0 comments on commit eaf9e0b

Please sign in to comment.