feat: Attempt to use environments for posthog-js deployment#2757
feat: Attempt to use environments for posthog-js deployment#2757rafaeelaudibert merged 7 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 No Changeset FoundThis PR doesn't include a changeset. A changeset (and the release label) is required to release a new version. How to add a changesetRun this command and follow the prompts: pnpm changesetRemember: Never use |
.github/workflows/release.yml
Outdated
| - name: Fetch latest main to avoid conflicts | ||
| run: | | ||
| git fetch origin main | ||
| git rebase origin/main || { | ||
| echo "Rebase failed, attempting merge" | ||
| git merge origin/main || { | ||
| echo "Merge also failed. This should not happen in normal operation." | ||
| exit 1 | ||
| } | ||
| } |
There was a problem hiding this comment.
logic: This rebase/merge logic runs after the version bump changes are staged but before committing. If another commit was pushed to main between checkout and this step, the rebase will incorporate those changes into the version bump commit, mixing unrelated changes.
Move this fetch/rebase before the version bump operations (before line 72), or remove it entirely since the concurrency group should prevent simultaneous runs.
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/release.yml
Line: 86:95
Comment:
**logic:** This rebase/merge logic runs after the version bump changes are staged but before committing. If another commit was pushed to main between checkout and this step, the rebase will incorporate those changes into the version bump commit, mixing unrelated changes.
Move this fetch/rebase before the version bump operations (before line 72), or remove it entirely since the concurrency group should prevent simultaneous runs.
How can I resolve this? If you propose a fix, please make it concise.| } | ||
| }' | ||
|
|
||
| - name: Dispatch posthog.com upgrade for ${{ matrix.package.name }} |
There was a problem hiding this comment.
syntax: Incorrect variable reference - should be matrix.package.name not ${{ matrix.package.name }} in the step name.
| - name: Dispatch posthog.com upgrade for ${{ matrix.package.name }} | |
| - name: Dispatch posthog.com upgrade for posthog-js |
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/release.yml
Line: 223:223
Comment:
**syntax:** Incorrect variable reference - should be `matrix.package.name` not `${{ matrix.package.name }}` in the step name.
```suggestion
- name: Dispatch posthog.com upgrade for posthog-js
```
How can I resolve this? If you propose a fix, please make it concise.|
Size Change: 0 B Total Size: 5.26 MB ℹ️ View Unchanged
|
By using the Github app we can skip the requirement for a CodeQL review
By checking main we guarantee we'll see the most recent commits rather than seeing the one from the action HEAD
No need to fail, we'll not proceed anyway
It doesn't make sense to call it deployer because it approves a PR
We wanna move our
posthog-js- and all other SDKs eventually - to environments to make sure a maintainer is always approving the workflow. We'll monitor those from Slack.This is an initial attempt to get this to work, let's see how this goes!