π GC-1464 Allow users to resize the sidebar in the Content Hub #259
Workflow file for this run
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: 'Chromatic Publish' | |
on: | |
pull_request: | |
types: [labeled, unlabeled, opened, edited, synchronize] | |
jobs: | |
build: | |
if: ${{ github.event.label.name == 'chromatic' }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checking out project | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # π Required to retrieve git history | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: install | |
run: npm install --ignore-scripts | |
- name: Publish to Chromatic | |
id: chromatic | |
uses: chromaui/action@v1 | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
autoAcceptChanges: true | |
- name: Comment on PR | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: | | |
_**π€ Beep boop, here's your Chromatic url: ${{ steps.chromatic.outputs.storybookUrl }}**_ | |
comment_tag: π€ Beep boop |