Skip to content

[Website] Enforce devcontainer for development - #10031

Merged
tobias-tengler merged 1 commit into
mainfrom
tte/force-devcontainer-for-website-development
Jul 1, 2026
Merged

tobias-tengler merged 1 commit into
mainfrom
tte/force-devcontainer-for-website-development

Conversation

@tobias-tengler

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Yarn plugin to gate website dependency operations so contributors are funneled into the frontend devcontainer (and CI), by requiring CHILLICREAM_FRONTEND_ENV to be set when Yarn loads the project.

Changes:

  • Enable a custom Yarn plugin in website/.yarnrc.yml and add the plugin implementation under website/.yarn/plugins/.
  • Set CHILLICREAM_FRONTEND_ENV inside the frontend devcontainer and in CI workflows (currently only on the initial install step).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
website/.yarnrc.yml Registers the new Yarn plugin for the website workspace.
website/.yarn/plugins/enforce-devcontainer.cjs Adds a Yarn validateProject hook to block Yarn usage unless CHILLICREAM_FRONTEND_ENV is set.
.github/workflows/publish-website.yml Sets CHILLICREAM_FRONTEND_ENV for the package install step (needs extending to later Yarn steps).
.github/workflows/ci.yml Sets CHILLICREAM_FRONTEND_ENV for the package install step (needs extending to later Yarn steps).
.devcontainer/frontend/devcontainer.json Sets CHILLICREAM_FRONTEND_ENV in the devcontainer so Yarn commands are permitted there.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
Comment on lines 141 to +145
- name: Install Packages
run: yarn --immutable --network-timeout 100000
working-directory: website
env:
CHILLICREAM_FRONTEND_ENV: ci
Comment on lines 48 to +52
- name: Install Packages
run: yarn --immutable --network-timeout 100000
working-directory: website
env:
CHILLICREAM_FRONTEND_ENV: ci
Comment on lines +7 to +11
report.reportError(
0,
`yarn install is only allowed inside the frontend devcontainer or CI. ` +
`Open the "ChilliCream Frontend" devcontainer for development on the website.`,
);
@tobias-tengler
tobias-tengler merged commit a0cee97 into main Jul 1, 2026
145 of 147 checks passed
@tobias-tengler
tobias-tengler deleted the tte/force-devcontainer-for-website-development branch July 1, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants