mirror of
https://github.com/meowarex/TidaLuna-Plugins.git
synced 2026-06-17 19:33:10 +10:00
06c4adf54b
The previous fix (#119) used `onlyBuiltDependencies` in pnpm-workspace.yaml, but the CI runner resolved `version: latest` to pnpm 11.1.2, where that key was removed and replaced by `allowBuilds` (a map of name -> bool). The `pnpm.onlyBuiltDependencies` block in package.json doesn't apply at the workspace level either, so esbuild was still being ignored. Changes: - pnpm-workspace.yaml: replace `onlyBuiltDependencies: [esbuild]` with `allowBuilds: { esbuild: true }` (pnpm 11 syntax). - package.json: add `packageManager: pnpm@11.1.2` so the version is reproducible across CI and local; drop the now-dead `pnpm` block. - .github/workflows/build.yml: drop `version: latest` from pnpm/action-setup; the action reads the version from `packageManager`.
35 lines
646 B
YAML
35 lines
646 B
YAML
name: "Validate & Build"
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
Sanity:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install pnpm 📥
|
|
uses: pnpm/action-setup@v4
|
|
# Version is read from `packageManager` in package.json for reproducible builds.
|
|
|
|
- name: Install Node.js 📥
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
cache: pnpm
|
|
node-version: latest
|
|
|
|
- name: Install dependencies 📥
|
|
run: pnpm install
|
|
|
|
- name: Build
|
|
run: pnpm run build
|
|
|
|
- name: Upload Build Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: luna-artifacts
|
|
path: ./dist
|