Update package dependencies and keep peer/dev versions aligned #909
Workflow file for this run
This file contains hidden or 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: Deploy PR Preview | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, closed] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| deploy-preview: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version: 26 | |
| - name: Install dependencies | |
| if: github.event.action != 'closed' | |
| run: | | |
| corepack enable | |
| yarn install --immutable --immutable-cache | |
| - name: Build Storybook | |
| if: github.event.action != 'closed' | |
| run: yarn build-storybook | |
| - name: Deploy preview | |
| uses: rossjrw/pr-preview-action@v1 | |
| with: | |
| source-dir: ./dist-storybook | |
| preview-branch: gh-pages | |
| umbrella-dir: pr-previews |