Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/pnpm-policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: pnpm policy

# Checks every pnpm project in the repository, which today is the two portal
# plugins under ui/, each with its own lockfile.

on:
pull_request:
push:
branches:
- main
schedule:
- cron: "0 6 * * 1"
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
pnpm-policy:
uses: datum-cloud/actions/.github/workflows/pnpm-policy.yaml@v1.31.0
with:
require-pnpm: true
require-lockfile: true
2 changes: 1 addition & 1 deletion ui/consumer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ host-absolute URLs that break behind the portal's `/api/plugins/<slug>/` proxy.
pnpm build:fixtures && pnpm preview

# cloud-portal, in another terminal
PORTAL_PLUGINS='metal-datumapis-com=http://localhost:7780' AUTH_DEV_TOKEN_EXCHANGE=1 bun run dev
PORTAL_PLUGINS='metal-datumapis-com=http://localhost:7780' AUTH_DEV_TOKEN_EXCHANGE=1 pnpm dev
```

If cloud-portal's `.env` already sets `PORTAL_PLUGINS_JSON` for other plugins,
Expand Down
2 changes: 1 addition & 1 deletion ui/consumer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@
"vite": "^7.3.5",
"vitest": "^4.1.12"
},
"packageManager": "pnpm@11.28.9"
"packageManager": "pnpm@12.23.0"
}
189 changes: 183 additions & 6 deletions ui/consumer/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion ui/consumer/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# pnpm settings for this plugin. It is a single package with its own lockfile,
# not a workspace member, so there is no `packages:` list.

# Wait a day after a release before installing it, and refuse a version
# whose provenance or trusted publisher is weaker than an earlier release's.
minimumReleaseAge: 1440
trustPolicy: no-downgrade

# Our own packages are published and consumed across repos on the same day, so
# the one-day release delay must not hold them back.
minimumReleaseAgeExclude:
Expand All @@ -12,8 +17,16 @@ allowBuilds:
esbuild: true
fsevents: false

# @tanstack/react-table ships agent skills, and pnpm 12 asks before exposing
# them. Deny them: the org decided no package's skills should run.
permissions:
'@tanstack/react-table':
skills: false

# Carried over from package.json's npm overrides.
overrides:
'@module-federation/dts-plugin>adm-zip': 0.6.1
'@module-federation/dts-plugin>undici': 7.30.1
'vitest>tinypool': ^2.1.2
# 6.3.1, which @babel/core pulls in, was published without provenance after
# earlier semver releases had it, so trustPolicy rejects it. 6.3.2 has it.
semver@6: ^6.3.2
2 changes: 1 addition & 1 deletion ui/provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ flag is baked into the build.
pnpm build:fixtures && pnpm preview

# staff-portal, in another terminal (you must be in the staff-users group)
PORTAL_PLUGINS='metal-datumapis-com=http://localhost:7781' npm run dev
PORTAL_PLUGINS='metal-datumapis-com=http://localhost:7781' pnpm dev
```

If staff-portal's `.env` already sets `PORTAL_PLUGINS_JSON`, add
Expand Down
2 changes: 1 addition & 1 deletion ui/provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@
"vite": "^7.3.5",
"vitest": "^4.1.12"
},
"packageManager": "pnpm@11.28.9"
"packageManager": "pnpm@12.23.0"
}
Loading
Loading