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
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ jobs:
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm gate
- run: pnpm gate:docker
- name: Publish preview
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/develop'
run: pnpx pkg-pr-new publish ./packages/roller --compact --pnpm
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:22-bookworm-slim

ENV CI=true COREPACK_HOME=/tmp/corepack LANG=C.UTF-8 LC_ALL=C.UTF-8

RUN apt-get update \
&& apt-get install -y --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/* \
&& corepack enable \
&& mkdir -p /workspace/.pnpm-store /workspace/node_modules /workspace/packages/roller/node_modules \
&& chmod 0777 /workspace/.pnpm-store /workspace/node_modules /workspace/packages/roller/node_modules

WORKDIR /workspace

CMD ["sh", "-c", "pnpm install --frozen-lockfile && pnpm gate"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ startup.
Work branches open pull requests against the integration branch, `develop`;
`main` contains releases. Pull requests and pushes to `develop` publish
installable previews through pkg.pr.new once its GitHub App is installed.
Run `pnpm gate:docker` to execute the same containerized gate used by CI.

To release, update the version and changelog on `develop`, merge it to `main`,
tag the release as `vX.Y.Z`, and publish a matching GitHub release. The release
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"typecheck": "tsc --noEmit",
"lint": "oxlint packages scripts",
"test": "vitest run",
"gate": "node scripts/gate.mjs"
"gate": "node scripts/gate.mjs",
"gate:docker": "docker build --tag roller-gate . && docker run --rm --user \"$(id -u):$(id -g)\" --volume \"$PWD:/workspace\" --volume /workspace/.pnpm-store --volume /workspace/node_modules --volume /workspace/packages/roller/node_modules roller-gate"
},
"devDependencies": {
"@deepseek-ai/dsh": "catalog:",
Expand Down
Loading