Skip to content

Commit

Permalink
hog
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Feb 4, 2025
1 parent b181930 commit 76a4e60
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-hog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ jobs:
node-version: 18
registry-url: https://registry.npmjs.org
- name: Install package.json dependencies
run: cd common/hogvm/typescript && pnpm install --frozen-lockfile
run: pnpm --filter=@posthog/hogvm install --frozen-lockfile
- name: Publish the package in the npm registry
run: cd common/hogvm/typescript && npm publish --access public
env:
Expand Down
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,14 @@ COPY ./plugin-server/package.json ./plugin-server/tsconfig.json ./plugin-server/
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]

# Compile and install Node.js dependencies.
# NOTE: we don't actually use the plugin-transpiler with the plugin-server, it's just here for the build.
RUN --mount=type=cache,id=pnpm,target=/tmp/pnpm-store \
corepack enable && \
pnpm --version && \
pnpm --filter=@posthog/plugin-server install --frozen-lockfile --store-dir /tmp/pnpm-store

# Build plugin-transpiler
RUN --mount=type=cache,id=pnpm,target=/tmp/pnpm-store \
pnpm --filter=@posthog/plugin-server install --frozen-lockfile --store-dir /tmp/pnpm-store && \
pnpm --filter=@posthog/plugin-transpiler install --frozen-lockfile --store-dir /tmp/pnpm-store && \
pnpm --filter=@posthog/plugin-transpiler build
pnpm --filter=@posthog/plugin-transpiler build && \
pnpm --filter=@posthog/cyclotron-node install --frozen-lockfile --store-dir /tmp/pnpm-store && \
pnpm --filter=@posthog/cyclotron-node build

WORKDIR /code/plugin-server

Expand All @@ -83,7 +82,7 @@ WORKDIR /code/plugin-server
# the cache hit ratio of the layers above.
COPY ./plugin-server/src/ ./src/
COPY ./plugin-server/tests/ ./tests/
RUN pnpm run build:cyclotron && pnpm build
RUN pnpm --filter=@posthog/plugin-server build

#
# ---------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@cypress/webpack-preprocessor": "^6.0.2",
"@parcel/packager-ts": "2.13.3",
"@parcel/transformer-typescript-types": "2.13.3",
"@playwright/test": "1.45.0",
"@sentry/types": "7.112.1",
Expand Down

0 comments on commit 76a4e60

Please sign in to comment.