File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments