Skip to content

Commit 6ab280d

Browse files
committed
Add node workflow
1 parent a0f41ec commit 6ab280d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/node.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Node.js
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
name: Compotes
8+
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v1
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: '10'
18+
19+
- run: npm install
20+
21+
- name: '[Run] 🚀 Build assets for dev'
22+
run: npm run dev
23+
24+
- name: 'Clean build'
25+
run: rm -rf public/build
26+
27+
- name: '[Run] 🚀 Build assets for prod'
28+
run: npm run build

0 commit comments

Comments
 (0)