build(dev-deps): bump the all-non-major-dependencies group #3302
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: Preview | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }} | |
outputs: | |
# https://www.chromatic.com/docs/github-actions#outputs | |
storybookUrl: ${{ steps.publish.outputs.storybookUrl }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 100 | |
- name: Setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Publish | |
id: publish | |
uses: chromaui/action@v11 | |
with: | |
buildScriptName: 'build:storybook' | |
externals: src/assets/** | |
onlyChanged: true | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
skip: 'dependabot/**' | |
token: ${{ secrets.GH_PAT }} | |
zip: true | |
update_pull_request: | |
name: Update Pull Request | |
runs-on: ubuntu-latest | |
needs: publish | |
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') && github.event_name == 'pull_request'}} | |
steps: | |
- name: Update Pull Request Preview URL | |
uses: ivangabriele/[email protected] | |
with: | |
githubToken: ${{ secrets.GH_PAT }} | |
find: AUTOFILLED_PREVIEW_URL | |
isHtmlCommentTag: true | |
replace: ${{ needs.publish.outputs.storybookUrl }} |