Skip to content

Commit

Permalink
feat(devops): build pipeline on branch main and PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
barthofu authored Aug 18, 2022
1 parent cc4591b commit 18e2862
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Build

on:
# push:
# branches: [ main ]

push:
branches: [ main ]

pull_request:

# allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -17,10 +20,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - uses: ./.github/workflows/build
- uses: actions/setup-node@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 17.6.0
cache: 'npm'
- run: npm ci
- run: npm run build

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

0 comments on commit 18e2862

Please # to comment.