Skip to content

Commit

Permalink
adapt github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbach committed Apr 4, 2022
1 parent 223a202 commit 1a82d0f
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 12 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Testing
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- name: Install, Build
run: |
yarn
npx lerna bootstrap
yarn build
yarn build:storybook
yarn build:docs
13 changes: 8 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Deployment
on: push
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- name: Install and Build 🔧
run: | # Install npm packages and build the Storybook files
- name: Install, Build, Prepare Deployment
run: |
yarn
npx lerna bootstrap
yarn build
Expand All @@ -18,7 +21,7 @@ jobs:
mv ./packages/stories/storybook-static/index.html ./packages/stories/storybook-static/index.htm
mv ./packages/stories/storybook-static ./packages/docs/build/storybook
echo 'synergies.js.org' >> ./packages/docs/build/CNAME
- name: Deploy 🚀
- name: Deploy
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pretty.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Pretty
name: Lint
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- name: Install and Pretty Check 🔧
run: | # Install npm packages and run tests
- name: Install, Lint
run: |
yarn
yarn lint
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- name: Install and Test 🔧
run: | # Install npm packages and run tests
- name: Install, Build, Test
run: |
yarn
npx lerna bootstrap
yarn build
Expand Down

0 comments on commit 1a82d0f

Please sign in to comment.