Skip to content

Commit ab4e571

Browse files
committed
ci: add github action
1 parent cde6d55 commit ab4e571

3 files changed

Lines changed: 25 additions & 17 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# https://github.com/Live-GM/api/blob/fd26d8efa46b101deba47d45061542ac0d76142f/.github/workflows/main.yml
2+
name: CI
3+
4+
on:
5+
push:
6+
branches: [master]
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: "14"
17+
- name: "Build"
18+
run: "yarn ci"
19+
- name: "Deploy"
20+
env:
21+
GH_TOKEN: ${{secrets.GH_TOKEN}}
22+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
23+
run: "yarn semantic-release"

.travis.yml

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"build:ts": "tsc -d --outDir dist/ts --emitDeclarationOnly",
1717
"build:post": "node ./postbuild-checks.js",
1818
"build": "yarn build:prepare && yarn build:js && yarn build:ts && yarn build:post",
19-
"prepublishOnly": "yarn build"
19+
"prepublishOnly": "yarn build",
20+
"ci": "yarn install && yarn lint && yarn test && yarn build"
2021
},
2122
"devDependencies": {
2223
"@ava/babel": "^1.0.1",

0 commit comments

Comments
 (0)