@tscircuit/eval 0.0.334 → 0.0.336
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.
- package/.github/workflows/bun-pver-release.yml +16 -4
- package/dist/blob-url.js +1 -1
- package/dist/eval/index.js +2 -2
- package/dist/lib/index.js +2 -2
- package/dist/webworker/entrypoint.js +1 -1
- package/package.json +1 -1
- package/tests/examples/example19-support-backwards-compat.test.tsx +31 -0
- package/webworker/transform-with-sucrase.ts +1 -1
|
@@ -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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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 }}\"}}"
|