Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
- remove unnecessary Dockerfile
- rename packages to @zuhlke/design-system-.....
  • Loading branch information
Cybertron01Z committed Mar 8, 2024
1 parent 1e5abdd commit a384d0f
Show file tree
Hide file tree
Showing 12 changed files with 1,330 additions and 429 deletions.
83 changes: 83 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: main

on:
push:
branches:
- main
pull_request:
branches:
- main


concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
ci-cd:
runs-on: ubuntu-latest

steps:
- name: Checkout Project
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ vars.NODE_VERSION }}
cache: npm
cache-dependency-path: 'package-lock.json'
registry-url: 'https://registry.npmjs.org'
scope: '@zuhlke'

- name: Install Root
run: |
npm ci
- name: Lint
run: |
npm run lint
- name: Check
run: |
npm run check
- name: Test
run: |
npm run test
- name: Build
run: |
npm run build
- name: Build Storybook
env:
NODE_OPTIONS: '--max-old-space-size=5120'
run: |
npm run build-storybook --workspace web-components
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_TOKEN }}
exitOnceUploaded: true
onlyChanged: true
workingDir: web-components
storybookBuildDir: storybook-static
zip: true

- name: Bump Version
if: github.event_name == 'pull_request'
run: |
npm run version:patch
git config --global user.name 'Version Bumper'
git commit -am "Bump Patch"
git push
- name: Publish
if: github.event_name == 'pull_request'
run: |
npm publish --workspaces --access public
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
fund=false
audit=false
legacy-peer-deps=true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v21.7.0
v21
Loading

0 comments on commit a384d0f

Please sign in to comment.