Skip to content

Commit

Permalink
chore: 워크 플로우 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ghdtjgus76 committed May 18, 2024
1 parent 8dfa384 commit ca659d6
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 67 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/a11y-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,45 @@ on:
- packages/wow-ui/src/**

jobs:
setup-node-pnpm:
uses: GDSC-Hongik/wow-design-system/.github/workflows/setup-node-pnpm.yml@feature/project-setting
common-workflow:
uses: GDSC-Hongik/wow-design-system/.github/workflows/common-workflow.yml@feature/project-setting
accessibility:
runs-on: ubuntu-latest
needs: [setup-node-pnpm, common-workflow]
steps:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Cache Dependencies
id: cache
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install Pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: Install Dependency
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install --no-frozen-lockfile
working-directory: packages/wow-ui

- name: Install Playwright
run: pnpm dlx playwright install --with-deps
working-directory: packages/wow-ui

- name: Build Packages
run: pnpm build

- name: Start Storybook
run: |
nohup pnpm storybook &
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/common-workflow.yml

This file was deleted.

33 changes: 25 additions & 8 deletions .github/workflows/deploy-chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,45 @@ on:
- packages/wow-ui/src/**

jobs:
setup-node-pnpm:
uses: GDSC-Hongik/wow-design-system/.github/workflows/setup-node-pnpm.yml@feature/project-setting
common-workflow:
uses: GDSC-Hongik/wow-design-system/.github/workflows/common-workflow.yml@feature/project-setting
chromatic-deployment:
runs-on: ubuntu-latest
needs: [setup-node-pnpm, common-workflow]
steps:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install Pnpm
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20.x

- name: Cache Dependencies
id: cache
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: Install Dependency
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install --no-frozen-lockfile
working-directory: packages/wow-ui

- name: Build packages
run: pnpm build

- name: Publish Chromatic
id: chromatic
uses: chromaui/action@v1
with:
workingDir: packages/wow-ui/src
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.TOKEN }}
token: ${{ secrets.TOKEN }}
34 changes: 27 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,41 @@ on:
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
setup-node-pnpm:
uses: GDSC-Hongik/wow-design-system/.github/workflows/setup-node-pnpm.yml@feature/project-setting
common-workflow:
uses: GDSC-Hongik/wow-design-system/.github/workflows/common-workflow.yml@feature/project-setting
release:
name: Release
runs-on: ubuntu-latest
needs: [setup-node-pnpm, common-workflow]
steps:
- name: Install Pnpm
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x

- name: Cache Dependencies
id: cache
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: Install Dependency
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install --no-frozen-lockfile
working-directory: packages/wow-ui

- name: Build packages
run: pnpm build

- name: Create .npmrc file
run: |
cat << EOF > "$HOME/.npmrc"
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/setup-node-pnpm.yml

This file was deleted.

0 comments on commit ca659d6

Please sign in to comment.