Skip to content

chore(deps): update eslint (major) #3466

chore(deps): update eslint (major)

chore(deps): update eslint (major) #3466

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/[email protected]
- uses: actions/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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"