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 a99c680
Show file tree
Hide file tree
Showing 12 changed files with 1,325 additions and 429 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
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: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_TOKEN }}
exitOnceUploaded: true
onlyChanged: true
workingDir: web-components
autoAcceptChanges: main
zip: true

- name: Bump Version
if: github.event_name != 'pull_request'
run: |
npm run version:patch
git config --global user.name 'Version Bumper'
git config --global user.email '[email protected]'
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 a99c680

Please sign in to comment.