chore(deps): update all non-major dependencies #294
Workflow file for this run
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: Deploy PR previews | |
concurrency: preview-${{ github.ref }} | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
paths: | |
- 'website/**' | |
jobs: | |
deploy-preview: | |
# If it's a PR from within the same repo, deploy to a preview page | |
if: github.repository_owner == 'batijs' && github.event.pull_request.head.repo.full_name == github.repository | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v4 | |
name: Setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build dependencies | |
run: pnpm run build | |
- name: Build website | |
run: pnpm run build:pages | |
working-directory: website | |
env: | |
BASE: /pr-preview/pr-${{ github.event.number }}/ | |
- uses: rossjrw/pr-preview-action@v1 | |
with: | |
source-dir: ./website/dist/client | |
preview-branch: gh-pages | |
umbrella-dir: pr-preview | |
action: auto | |
token: ${{ secrets.DEPLOY_GITHUB_TOKEN }} | |
deploy-repository: batijs/batijs.github.io | |
custom-url: batijs.dev |