build(dev-deps): downgrade semantic-release from 24.1.2 to 23.0.8 #3598
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_TOKEN }} | |
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_TOKEN }} | |
find: AUTOFILLED_PREVIEW_URL | |
isHtmlCommentTag: true | |
replace: ${{ needs.publish.outputs.storybookUrl }} |