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
44 changes: 44 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: E2E Tests

on:
push:
branches: [changeset-release/main]
Copy link

Choose a reason for hiding this comment

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

Bug: E2E tests no longer gate npm publish

The refactoring decouples E2E tests from the publish workflow in a way that removes the safety gate. Previously, E2E tests ran in release.yml before the changesets action, blocking publish on failure. Now E2E tests run on changeset-release/main independently, but when the Version PR is merged to main, release.yml triggers and can publish to npm regardless of E2E test results. The E2E workflow status doesn't prevent merging or publishing—a broken package could be released if someone merges the Version PR while E2E tests are failing.

Additional Locations (1)

Fix in Cursor Fix in Web


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
PNPM_VERSION: '10.10.0'
NODE_VERSION: '22'

jobs:
e2e:
name: E2E Tests
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm run build

- name: Run E2E tests
run: pnpm test:e2e
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
EXA_API_KEY: ${{ secrets.EXA_API_KEY }}
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ jobs:
- name: Build
run: pnpm run build

- name: Run E2E tests
run: pnpm test:e2e
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
EXA_API_KEY: ${{ secrets.EXA_API_KEY }}

- name: Create Release PR or Publish
id: changesets
uses: changesets/action@v1
Expand Down