Skip to content

Commit 4b36942

Browse files
whitphxCopilot
andauthored
Remove Lerna and tag-based release dispatch workflow (#1669)
* Remove lerna * Remove tag-based CI workflow * Update AGENTS.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c91daa2 commit 4b36942

6 files changed

Lines changed: 21 additions & 1939 deletions

File tree

.github/workflows/postbuild.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
contents: read
2828
outputs:
2929
branch: ${{ steps.build-info.outputs.branch }}
30-
tag: ${{ steps.build-info.outputs.tag }}
3130
trigger-sha: ${{ steps.build-info.outputs.trigger-sha }}
3231
head-sha: ${{ steps.build-info.outputs.head-sha }}
3332
pr-number: ${{ steps.build-info.outputs.pr-number }}
@@ -43,8 +42,6 @@ jobs:
4342
run: |
4443
echo "branch=$(cat branch)"
4544
echo "branch=$(cat branch)" >> $GITHUB_OUTPUT
46-
echo "tag=$(cat tag)"
47-
echo "tag=$(cat tag)" >> $GITHUB_OUTPUT
4845
echo "trigger-sha=$(cat trigger-sha)"
4946
echo "trigger-sha=$(cat trigger-sha)" >> $GITHUB_OUTPUT
5047
echo "head-sha=$(cat head-sha)"

.github/workflows/test-build.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Test and Build
33
on:
44
push:
55
branches: [ "main" ]
6-
tags: [ "v*" ]
76
pull_request:
87
branches: [ "main" ]
98

@@ -15,7 +14,7 @@ concurrency:
1514
env:
1615
python-version-file: ".python-version"
1716
node-version-file: ".nvmrc"
18-
RUN_ALL_TESTS: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || startsWith(github.ref, 'refs/tags/v') }}
17+
RUN_ALL_TESTS: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
1918

2019
permissions: {}
2120

@@ -24,7 +23,6 @@ jobs:
2423
runs-on: ubuntu-latest
2524
outputs:
2625
branch: ${{ steps.build-info.outputs.branch }}
27-
tag: ${{ steps.build-info.outputs.tag }}
2826
trigger-sha: ${{ steps.build-info.outputs.trigger-sha }}
2927
head-sha: ${{ steps.build-info.outputs.head-sha }}
3028
pr-number: ${{ steps.build-info.outputs.pr-number }}
@@ -33,31 +31,20 @@ jobs:
3331
if: github.event_name == 'pull_request'
3432
run: |
3533
echo "${{ github.event.pull_request.head.ref }}" > branch
36-
echo "" > tag
3734
echo "${{ github.event.pull_request.head.sha }}" > head-sha
3835
echo "${{ github.sha }}" > trigger-sha
3936
echo "${{ github.event.pull_request.number }}" > pr-number
4037
- name: Save build info (push, branch)
4138
if: github.event_name == 'push' && github.ref_type == 'branch'
4239
run: |
4340
echo "${{ github.ref_name }}" > branch
44-
echo "" > tag
45-
echo "${{ github.sha }}" > head-sha
46-
echo "${{ github.sha }}" > trigger-sha
47-
echo "" > pr-number
48-
- name: Save build info (push, tag)
49-
if: github.event_name == 'push' && github.ref_type == 'tag'
50-
run: |
51-
echo "" > branch
52-
echo "${{ github.ref_name }}" > tag
5341
echo "${{ github.sha }}" > head-sha
5442
echo "${{ github.sha }}" > trigger-sha
5543
echo "" > pr-number
5644
- name: Output build info
5745
id: build-info
5846
run: |
5947
echo "branch=$(cat branch)" >> $GITHUB_OUTPUT
60-
echo "tag=$(cat tag)" >> $GITHUB_OUTPUT
6148
echo "trigger-sha=$(cat trigger-sha)" >> $GITHUB_OUTPUT
6249
echo "head-sha=$(cat head-sha)" >> $GITHUB_OUTPUT
6350
echo "pr-number=$(cat pr-number)" >> $GITHUB_OUTPUT
@@ -67,7 +54,6 @@ jobs:
6754
name: build-info
6855
path: |
6956
branch
70-
tag
7157
head-sha
7258
trigger-sha
7359
pr-number

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- `packages/` hosts the Yarn workspaces: `browser`, `sharing`, and `desktop` are user apps; `kernel` is the Pyodide core; `sharing-editor` is the editor client for `sharing`, and the rest (`common`, `common-react`, devutils) are support utilities.
66
- `streamlit/` mirrors upstream Streamlit; `streamlit/frontend/app` is the upstream UI we reference (not build) when customizing `browser`, `sharing`, and `desktop`, while other `streamlit/frontend/*` packages (`lib`, `connection`, etc.) are consumed directly by our workspaces.
7-
- Supporting assets sit in `assets/`; Makefile + `lerna.json` orchestrate builds, and browser E2E specs live in `packages/browser/e2e-tests`.
7+
- Supporting assets sit in `assets/`; Makefile orchestrates builds, and browser E2E specs live in `packages/browser/e2e-tests`.
88

99
## Build, Test, and Development Commands
1010

lerna.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@
1717
"node": ">=22"
1818
},
1919
"scripts": {
20-
"new-version": "lerna version",
2120
"prepare": "husky",
2221
"changeset": "changeset",
2322
"changeset:release": "changeset tag && git push --follow-tags"
2423
},
2524
"devDependencies": {
2625
"@changesets/changelog-github": "^0.5.1",
2726
"@changesets/cli": "^2.29.7",
28-
"@lerna-lite/cli": "^4.3.0",
29-
"@lerna-lite/version": "^4.3.0",
3027
"husky": "^9.1.7",
3128
"lint-staged": "^16.1.5",
3229
"typescript": "^5.9.2"

0 commit comments

Comments
 (0)