Skip to content

Commit

Permalink
fix: update main.xml based on need to run npm commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mehul0810 committed Nov 19, 2019
1 parent 81da76e commit 633272a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,25 @@ on:
push:
tags:
- "*.*.*"
jobs:
build:

env:
NODE_VERSION: '10.3.0'

jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: Build
run: |
npm install
npm run production
- name: Deploy
run: chmod +x ./deploy.sh && ./deploy.sh
env:
Expand Down

0 comments on commit 633272a

Please sign in to comment.