@tscircuit/eval 0.0.333 → 0.0.335

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.
@@ -1,13 +1,15 @@
1
1
  # Created using @tscircuit/plop (npm install -g @tscircuit/plop)
2
2
  name: Publish to npm
3
3
  on:
4
- workflow_dispatch:
5
4
  push:
6
5
  branches:
7
6
  - main
8
- paths:
9
- - 'lib/**'
10
- - 'package.json'
7
+ workflow_dispatch:
8
+
9
+ env:
10
+ UPSTREAM_REPO: "runframe" # for example: "eval"
11
+ PACKAGE_NAMES: "@tscircuit/eval" # comma-separated list, e.g. "@tscircuit/core,@tscircuit/props"
12
+
11
13
  jobs:
12
14
  publish:
13
15
  runs-on: ubuntu-latest
@@ -27,3 +29,13 @@ jobs:
27
29
  - run: pver release
28
30
  env:
29
31
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32
+ GITHUB_TOKEN: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
33
+ - name: Trigger upstream repo update
34
+ if: env.UPSTREAM_REPO && env.PACKAGE_NAMES
35
+ run: |
36
+ curl -X POST \
37
+ -H "Accept: application/vnd.github.v3+json" \
38
+ -H "Authorization: token ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}" \
39
+ -H "Content-Type: application/json" \
40
+ "https://api.github.com/repos/tscircuit/${{ env.UPSTREAM_REPO }}/actions/workflows/update-package.yml/dispatches" \
41
+ -d "{\"ref\":\"main\",\"inputs\":{\"package_names\":\"${{ env.PACKAGE_NAMES }}\"}}"