Skip to content

Commit

Permalink
ci(github-actions): use github-actions ci instead of travis
Browse files Browse the repository at this point in the history
  • Loading branch information
floydspace committed Dec 11, 2020
1 parent 0c19e66 commit 45b8141
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 19 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: release
on:
push:
branches:
- master
- beta
- alpha
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- run: npm run build --if-present
publish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm install
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"clean": "rm -rf ./dist",
"pretest": "npm run lint",
"test": "jest --passWithNoTests",
"lint": "eslint .",
"semantic-release": "semantic-release"
"lint": "eslint ."
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 45b8141

Please sign in to comment.