Skip to content

Commit

Permalink
update new ci files
Browse files Browse the repository at this point in the history
  • Loading branch information
ethriel3695 committed Jul 18, 2024
1 parent 4026f72 commit fc4ba78
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 56 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# name: Chromatic
# on: push
name: Chromatic
on: push

# jobs:
# chromatic:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - uses: actions/setup-node@v3
# with:
# node-version: 22
# - uses: pnpm/action-setup@v4
# with:
# version: 9
# - name: install
# run: pnpm install
# - name: build storybook
# run: pnpm build-storybook
# - name: run chromatic
# run: pnpm chromatic
# env:
# CHROMATIC_PROJECT_TOKEN: chpt_8adcafffd1b8cdc
# # - name: Run Chromatic
# # id: run-chromatic-action
# # uses: chromaui/action-next@v1
# # with:
# # onlyChanged: true
# # traceChanged: true
# # diagnostics: true
# # exitZeroOnChanges: true
# # exitOnceUploaded: true
# # autoAcceptChanges: "main"
# # env:
# # CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
# # STORYBOOK_GITHUB_SHA: ${{ github.event.pull_request.head.sha }}
jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 22
- uses: pnpm/action-setup@v4
with:
version: 9
- name: install
run: pnpm install
- name: build storybook
run: pnpm build-storybook
- name: run chromatic
run: pnpm chromatic
env:
CHROMATIC_PROJECT_TOKEN: chpt_8adcafffd1b8cdc
# - name: Run Chromatic
# id: run-chromatic-action
# uses: chromaui/action-next@v1
# with:
# onlyChanged: true
# traceChanged: true
# diagnostics: true
# exitZeroOnChanges: true
# exitOnceUploaded: true
# autoAcceptChanges: "main"
# env:
# CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
# STORYBOOK_GITHUB_SHA: ${{ github.event.pull_request.head.sha }}
40 changes: 20 additions & 20 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
# # Starter pipeline
# # Start with a minimal pipeline that you can customize to build and deploy your code.
# # Add steps that build, run tests, deploy, and more:
# # https://aka.ms/yaml

trigger:
- main
# trigger:
# - main

pool:
vmImage: ubuntu-latest
# pool:
# vmImage: ubuntu-latest

steps:
- checkout: self
fetchDepth: '0'
- task: UseNode@1
inputs:
version: '18.x'
- script: |
npm install --global pnpm
displayName: "Setup pnpm"
# steps:
# - checkout: self
# fetchDepth: '0'
# - task: UseNode@1
# inputs:
# version: '18.x'
# - script: |
# npm install --global pnpm
# displayName: "Setup pnpm"

- script: pnpm install
- script: pnpm build-storybook
- script: pnpm chromatic
# - script: pnpm install
# - script: pnpm build-storybook
# - script: pnpm chromatic

0 comments on commit fc4ba78

Please sign in to comment.