Skip to content

chore(deps): update testing-library monorepo (major) #3326

chore(deps): update testing-library monorepo (major)

chore(deps): update testing-library monorepo (major) #3326

Workflow file for this run

name: pages
on:
push:
branches:
- 'master'
pull_request:
types: [opened, synchronize, reopened]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/setup-node@v4.0.2
with:
node-version: 20
cache: yarn
- uses: rlespinasse/github-slug-action@v4
- name: Set destination dir
id: set_destination_dir
run: |
if [[ $GITHUB_REF_SLUG == 'master' ]]; then
echo "dir=" >> $GITHUB_OUTPUT
else
echo "dir=ref/$GITHUB_REF_SLUG" >> $GITHUB_OUTPUT
fi
- name: Create GitHub deployment
uses: chrnorm/deployment-action@v2.0.7
id: deployment
with:
token: "${{ github.token }}"
environment-url: https://dromru.github.io/react-photoswipe-gallery/${{ steps.set_destination_dir.outputs.dir }}
environment: github-pages
- run: yarn install
- run: yarn build-storybook
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static
destination_dir: ${{ steps.set_destination_dir.outputs.dir }}
keep_files: true
- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@v2.0.3
with:
token: "${{ github.token }}"
environment-url: https://dromru.github.io/react-photoswipe-gallery/${{ steps.set_destination_dir.outputs.dir }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: "success"
- name: Update deployment status (failure)
if: failure()
uses: chrnorm/deployment-status@v2.0.3
with:
token: "${{ github.token }}"
environment-url: https://dromru.github.io/react-photoswipe-gallery/${{ steps.set_destination_dir.outputs.dir }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: "failure"