@tscircuit/eval 0.0.340 → 0.0.342

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ on:
7
7
  workflow_dispatch:
8
8
 
9
9
  env:
10
- UPSTREAM_REPO: "runframe" # for example: "eval"
10
+ UPSTREAM_REPOS: "runframe" # for example: "eval,runframe"
11
11
  PACKAGE_NAMES: "@tscircuit/eval" # comma-separated list, e.g. "@tscircuit/core,@tscircuit/props"
12
12
 
13
13
  jobs:
@@ -28,16 +28,43 @@ jobs:
28
28
  - run: npm install -g pver
29
29
  - run: bun install --frozen-lockfile
30
30
  - run: bun run build
31
- - run: pver release
31
+ - run: pver release --no-push-main
32
32
  env:
33
33
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34
34
  GITHUB_TOKEN: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
35
- - name: Trigger upstream repo update
36
- if: env.UPSTREAM_REPO && env.PACKAGE_NAMES
35
+
36
+ - name: Create Pull Request
37
+ id: create-pr
38
+ uses: peter-evans/create-pull-request@v5
39
+ with:
40
+ commit-message: "chore: bump version"
41
+ title: "chore: bump version"
42
+ body: "Automated package update"
43
+ branch: bump-version-${{ github.run_number }}
44
+ base: main
45
+ token: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
46
+ committer: tscircuitbot <githubbot@tscircuit.com>
47
+ author: tscircuitbot <githubbot@tscircuit.com>
48
+
49
+ - name: Enable auto-merge
50
+ if: steps.create-pr.outputs.pull-request-number != ''
51
+ run: |
52
+ gh pr merge ${{ steps.create-pr.outputs.pull-request-number }} --auto --squash --delete-branch
53
+ env:
54
+ GH_TOKEN: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
55
+
56
+ - name: Trigger upstream repo updates
57
+ if: env.UPSTREAM_REPOS && env.PACKAGE_NAMES
37
58
  run: |
38
- curl -X POST \
39
- -H "Accept: application/vnd.github.v3+json" \
40
- -H "Authorization: token ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}" \
41
- -H "Content-Type: application/json" \
42
- "https://api.github.com/repos/tscircuit/${{ env.UPSTREAM_REPO }}/actions/workflows/update-package.yml/dispatches" \
43
- -d "{\"ref\":\"main\",\"inputs\":{\"package_names\":\"${{ env.PACKAGE_NAMES }}\"}}"
59
+ IFS=',' read -ra REPOS <<< "${{ env.UPSTREAM_REPOS }}"
60
+ for repo in "${REPOS[@]}"; do
61
+ if [[ -n "$repo" ]]; then
62
+ echo "Triggering update for repo: $repo"
63
+ curl -X POST \
64
+ -H "Accept: application/vnd.github.v3+json" \
65
+ -H "Authorization: token ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}" \
66
+ -H "Content-Type: application/json" \
67
+ "https://api.github.com/repos/tscircuit/$repo/actions/workflows/update-package.yml/dispatches" \
68
+ -d "{\"ref\":\"main\",\"inputs\":{\"package_names\":\"${{ env.PACKAGE_NAMES }}\"}}"
69
+ fi
70
+ done
@@ -7,6 +7,8 @@ on:
7
7
  jobs:
8
8
  validate-test-matrix:
9
9
  runs-on: ubuntu-latest
10
+ if: "${{ github.event_name != 'pull_request' || github.event.pull_request.title != 'chore: bump version' }}"
11
+
10
12
  steps:
11
13
  - name: Checkout code
12
14
  uses: actions/checkout@v4
@@ -21,6 +23,8 @@ jobs:
21
23
 
22
24
  test:
23
25
  runs-on: ubuntu-latest
26
+ if: "${{ github.event_name != 'pull_request' || github.event.pull_request.title != 'chore: bump version' }}"
27
+
24
28
  timeout-minutes: 5
25
29
  needs: validate-test-matrix
26
30
  strategy:
@@ -39,19 +39,21 @@ jobs:
39
39
 
40
40
  - name: Create Pull Request
41
41
  if: steps.git-check.outputs.changes == 'true'
42
+ id: create-pr
42
43
  uses: peter-evans/create-pull-request@v5
43
44
  with:
44
- commit-message: "chore: update @tscircuit/core to v${{ steps.get-version.outputs.new_version }}"
45
- title: "chore: update @tscircuit/core to v${{ steps.get-version.outputs.new_version }}"
46
- body: |
47
- Automated update of @tscircuit/core to v${{ steps.get-version.outputs.new_version }}.
48
-
49
- This PR was created automatically by the update-tscircuit-core GitHub workflow.
50
- branch: update-tscircuit-core
45
+ commit-message: "chore: update packages ${{ env.PACKAGE_NAMES }}"
46
+ title: "chore: update packages ${{ env.PACKAGE_NAMES }}"
47
+ body: "Automated package update"
48
+ branch: update-packages-${{ github.run_number }}
51
49
  base: main
52
50
  token: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
53
- committer: tscircuitbot <bot@tscircuit.com>
54
- author: tscircuitbot <bot@tscircuit.com>
55
- labels: |
56
- auto-merge
57
- core
51
+ committer: tscircuitbot <githubbot@tscircuit.com>
52
+ author: tscircuitbot <githubbot@tscircuit.com>
53
+
54
+ - name: Enable auto-merge with CI checks
55
+ if: steps.create-pr.outputs.pull-request-number != ''
56
+ run: |
57
+ gh pr merge ${{ steps.create-pr.outputs.pull-request-number }} --auto --squash --delete-branch
58
+ env:
59
+ GH_TOKEN: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}