diff --git a/.github/actions/restore-build/action.yml b/.github/actions/restore-build/action.yml deleted file mode 100644 index d5fa070d41..0000000000 --- a/.github/actions/restore-build/action.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Restore build artifacts -description: Download and extract build output artifact - -inputs: - artifact-name: - description: Name of the artifact containing build output - default: build-output - required: false - -runs: - using: composite - steps: - - name: Download build artifacts - uses: actions/download-artifact@v8 - with: - name: ${{ inputs.artifact-name }} - path: /tmp/build-output - - - name: Restore build output - shell: bash - run: tar -xzf /tmp/build-output/build-output.tar.gz diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml index 90163b1bc0..0987a9924a 100644 --- a/.github/actions/setup-env/action.yml +++ b/.github/actions/setup-env/action.yml @@ -1,5 +1,5 @@ -name: Setup Node.js and pnpm -description: Install pnpm, setup Node.js, and optionally configure pnpm store +name: Setup Vite+ and pnpm environment +description: Install Vite+ (vp) and pnpm, setup Node.js, and optionally configure the pnpm store inputs: node-version: @@ -13,7 +13,7 @@ inputs: default: '' required: false cache: - description: Whether to use setup-node's pnpm caching (pass literal string `'true'` to enable) + description: Whether to use setup-vp's dependency caching (pass literal string `'true'` to enable) default: 'false' required: false @@ -24,12 +24,13 @@ runs: with: version: ${{ inputs.pnpm-version }} - - uses: actions/setup-node@v4 - with: - node-version: ${{ inputs.node-version }} - cache: ${{ inputs.cache == 'true' && 'pnpm' || '' }} - - name: Configure pnpm store if: inputs.store-dir != '' shell: bash run: pnpm config set store-dir ${{ github.workspace }}/${{ inputs.store-dir }} + + - uses: voidzero-dev/setup-vp@v1.17.0 + with: + node-version: ${{ inputs.node-version }} + cache: ${{ inputs.cache == 'true' && 'true' || 'false' }} + run-install: false diff --git a/.github/actions/setup-playwright/action.yml b/.github/actions/setup-playwright/action.yml index 0fda880a35..8927c60b92 100644 --- a/.github/actions/setup-playwright/action.yml +++ b/.github/actions/setup-playwright/action.yml @@ -19,9 +19,9 @@ runs: - name: Install Playwright browsers if: steps.playwright-cache.outputs.cache-hit != 'true' shell: bash - run: pnpm exec playwright install --with-deps chromium + run: vp exec playwright install --with-deps chromium - name: Install Playwright system deps if: steps.playwright-cache.outputs.cache-hit == 'true' shell: bash - run: pnpm exec playwright install-deps chromium + run: vp exec playwright install-deps chromium diff --git a/.github/instructions/tiptap.instructions.md b/.github/instructions/tiptap.instructions.md index 02b8e305ff..acf535d77f 100644 --- a/.github/instructions/tiptap.instructions.md +++ b/.github/instructions/tiptap.instructions.md @@ -46,29 +46,31 @@ Notes: ## NPM scripts -Scripts defined at the repo root: - -- `pnpm dev` - start the demos on port 3000 -- `pnpm build` - build all packages via Turborepo -- `pnpm check` - run format check + lint -- `pnpm check:fix` - run format:fix + lint:fix -- `pnpm format` - run oxfmt formatter check -- `pnpm format:fix` - run oxfmt formatter -- `pnpm lint` - run oxlint checks -- `pnpm lint:fix` - run oxlint with auto-fix -- `pnpm lint:staged` - run lint-staged on staged files -- `pnpm test:e2e` - run Playwright e2e tests headlessly in Chromium -- `pnpm test:e2e:firefox` - same, in Firefox -- `pnpm test:e2e:all` - same, in both browsers -- `pnpm test:e2e:open` - run Playwright in UI mode (Chromium tests) -- `pnpm test:e2e:open:firefox` - UI mode, Firefox tests -- `pnpm test:e2e:open:all` - UI mode, both browsers selectable -- `pnpm test:e2e:report` - open the HTML report from the last run -- `pnpm test:unit` - run Vitest unit tests in `packages/**/__tests__/` -- `pnpm test` - build then run all tests -- `pnpm serve` - build and serve the demos on port 3000 -- `pnpm publish` - build and publish with Changesets -- `pnpm reset` - remove caches, build artifacts, and reinstall deps +Scripts defined at the repo root. Run them with `vp run