Tec 4141 front resumo componentes de subtotais ds (#24) #143
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Docs to Chromatic | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [ ready_for_review, synchronize, opened, reopened ] | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
- '**/bugfix/**' | |
- '**/featured/**' | |
jobs: | |
test: | |
uses: ./.github/workflows/test.yml | |
publish-docs: | |
needs: test | |
runs-on: ubuntu-latest | |
if: contains(github.event.pull_request.labels.*.name, 'publish_docs') | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Dependencies | |
run: npm install | |
- run: npm ci | |
- name: build | |
run: npm run build-storybook | |
- run: npm run build | |
name: Publish to Chromatic | |
- uses: chromaui/action@latest | |
with: | |
projectToken: ${{ secrets.PROJECT_CHROMATIC_TOKEN }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
autoAcceptChanges: true |