Skip to content

Commit 80d1c8d

Browse files
Updates
1 parent 27139d7 commit 80d1c8d

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/update-bokeh.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,21 @@ jobs:
1717

1818
steps:
1919
- name: Check out repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
21+
ref: "main"
2122

2223
- name: Set up Python
2324
uses: actions/setup-python@v4
2425
with:
2526
python-version: "3.12"
2627

28+
- name: Setup Node
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version-file: ".nvmrc"
32+
cache: "npm"
33+
cache-dependency-path: "**/package-lock.json"
34+
2735
- name: Install dependencies
2836
run: pip install requests
2937

@@ -36,6 +44,11 @@ jobs:
3644
run: |
3745
echo "NEW_VERSION=${{ steps.compare_bokeh.outputs.new_version }}" >> $GITHUB_ENV
3846
BRANCH="release/${NEW_VERSION}"
47+
48+
cd streamlit_bokeh/frontend
49+
npm install
50+
cd ../..
51+
3952
git config user.name "github-actions"
4053
git config user.email "github-actions@github.com"
4154
git checkout -b "${BRANCH}"

scripts/update_bokeh_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def update_index_html(public_dir, old_version, new_version):
121121

122122
if __name__ == "__main__":
123123
new_version = get_latest_bokeh_version()
124-
old_version = importlib.metadata.version("streamlit_bokeh_chart")
124+
old_version = importlib.metadata.version("streamlit_bokeh")
125125

126126
print(f"Current local bokeh version: {old_version}")
127127
print(f"Latest PyPI bokeh version: {new_version}")
@@ -132,7 +132,7 @@ def update_index_html(public_dir, old_version, new_version):
132132
exit(0)
133133

134134
print("New version available!")
135-
public_dir = "streamlit_bokeh_chart/frontend/public"
135+
public_dir = "streamlit_bokeh/frontend/public/bokeh"
136136

137137
# Remove original files
138138
for filename in os.listdir(public_dir):

0 commit comments

Comments
 (0)