Skip to content

Commit

Permalink
👷 Fix build jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaHuhn committed Apr 12, 2021
1 parent 6360f99 commit 8aaff0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 31 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
branches-ignore:
- master
paths:
- 'client/*'
- 'build/ui/*'
pull_request:
branches-ignore:
- master
paths:
- 'client/*'
- 'build/ui/*'
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -18,20 +18,16 @@ jobs:
- uses: actions/checkout@v2
- uses: c-hive/gha-npm-cache@v1
- name: Install dependencies
working-directory: ./client
run: npm ci
- name: Build Vue.js App
working-directory: ./client
run: npm run build
run: npm run client:build
lint:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- uses: c-hive/gha-npm-cache@v1
- name: Install dependencies
working-directory: ./client
run: npm ci
- name: Run eslint
working-directory: ./client
run: npm run lint
run: npm run client:lint
26 changes: 3 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,8 @@ on:
branches:
- master
jobs:
client-build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- uses: c-hive/gha-npm-cache@v1
- name: Install dependencies
working-directory: ./client
run: npm ci
- name: Build Vue.js App
working-directory: ./client
run: npm run build
server-build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- uses: c-hive/gha-npm-cache@v1
- name: Install dependencies
run: npm ci
- name: Build Server
run: npm run server:build
release:
needs: [client-build, server-build]
name: Build and release
runs-on: ubuntu-18.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
Expand All @@ -41,6 +19,8 @@ jobs:
uses: c-hive/gha-npm-cache@v1
- name: Install dependencies
run: npm ci
- name: Build frontend and backend
run: npm run build
- name: Release
run: npx semantic-release
env:
Expand Down

0 comments on commit 8aaff0b

Please sign in to comment.