Skip to content

Commit 687e620

Browse files
committed
add build action
1 parent 9059485 commit 687e620

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

.github/workflows/build.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: BUILD
3+
name: Build
44

55
# Controls when the action will run. Triggers the workflow on push or pull request
66
# events but only for the master branch
77
on:
8-
push:
9-
branches: [master]
108
pull_request:
119
branches: [master]
1210

@@ -23,9 +21,10 @@ jobs:
2321
- uses: actions/checkout@v2
2422

2523
# Runs a set of commands using the runners shell
26-
- name: Build
24+
- name: Install, Build and Test
2725
run: |
2826
sudo npm install -g babel-cli
2927
cd javascript
3028
npm install
3129
npm run build
30+

.github/workflows/deploy.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Publish
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
push:
9+
branches: [master]
10+
11+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
jobs:
13+
# This workflow contains a single job called "build"
14+
publish:
15+
# The type of runner that the job will run on
16+
runs-on: ubuntu-latest
17+
18+
# Steps represent a sequence of tasks that will be executed as part of the job
19+
steps:
20+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21+
- uses: actions/checkout@v2
22+
23+
# Runs a set of commands using the runners shell
24+
- name: Publish to NPM
25+
run: |
26+
echo "deploy"

0 commit comments

Comments
 (0)