Skip to content

Commit 01484f2

Browse files
committed
ci: add github workflow file
1 parent eb4d371 commit 01484f2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and release on production
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
- canary
7+
- rc
8+
- master
9+
10+
jobs:
11+
setup-build-publish-deploy:
12+
name: Setup, Build, Publish, and Deploy
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Extract branch name
18+
shell: bash
19+
run: echo "::set-env name=BRANCH_NAME::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: 14
24+
- run: npm install
25+
- run: npm run build
26+
- run: npm run coveralls-after
27+
- run: bash ".ci/publish_$BRANCH_NAME.sh"

0 commit comments

Comments
 (0)