Skip to content

feat(workspaces): publish files with ready previews #261

feat(workspaces): publish files with ready previews

feat(workspaces): publish files with ready previews #261

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: blacksmith-2vcpu-ubuntu-2404
timeout-minutes: 30
env:
CLOUDFLARE_VITE_FORCE_LOCAL: "true"
steps:
- uses: actions/checkout@v7
- uses: voidzero-dev/setup-vp@v1
with:
node-version-file: .node-version
cache: true
- name: Install dependencies
run: vp install --frozen-lockfile
- name: Restore Vite Task cache
id: vite-task-cache
uses: actions/cache/restore@v6
with:
path: node_modules/.vite/task-cache
key: vite-task-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }}-${{ github.run_attempt }}
restore-keys: |
vite-task-${{ runner.os }}-${{ runner.arch }}-
- name: Verify
run: vp run verify
- name: Save Vite Task cache
if: success()
uses: actions/cache/save@v6
with:
path: node_modules/.vite/task-cache
key: ${{ steps.vite-task-cache.outputs.cache-primary-key }}