Skip to content

Commit

Permalink
ci: add build github action
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWeb committed Jan 10, 2024
1 parent 757e9cf commit feb843b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on:
pull_request:
branches:
- main

jobs:
build:
if: github.repository_owner == 'AxaFrance'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'npm'
- run: npm ci
- run: npm run build
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"cache": false
},
"build": {
"outputs": ["dist/**"]
"outputs": ["dist/**"],
"dependsOn": ["^build"]
},
"build:storybook": {
"outputs": ["storybook-static/**"]
Expand Down

0 comments on commit feb843b

Please sign in to comment.