A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
update and add PR comment (#940)
Myles Scolnick5ad241d0c136
diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.ymlindex 1b1a20264b..c1883cc885 100644--- a/.github/workflows/dev-release.yml+++ b/.github/workflows/dev-release.yml@@ -57,8 +57,10 @@ jobs:n_commits=`git rev-list $(git describe --tags --abbrev=0)..HEAD --count`# Form the new version, which is one patch ahead of the last version# so installing from Test PyPI does the right thing- NEW_VERSION="${incremented_version}-dev${n_commits}"- sed -i "s/__version__ = \".*\"/__version__ = \"$NEW_VERSION\"/" marimo/__init__.py+ MARIMO_VERSION="${incremented_version}-dev${n_commits}"+ # Set the version in the environment for later steps+ echo "MARIMO_VERSION=$MARIMO_VERSION" >> $GITHUB_ENV+ sed -i "s/__version__ = \".*\"/__version__ = \"$MARIMO_VERSION\"/" marimo/__init__.py- name: 📦 Build marimorun: |@@ -76,8 +78,8 @@ jobs:- name: 📦 Update package.json version from CLIworking-directory: frontendrun: |- echo "Updating package.json version to $(marimo --version)"- npm version $(marimo --version) --no-git-tag-version+ echo "Updating package.json version to ${{ env.MARIMO_VERSION }}"+ npm version ${{ env.MARIMO_VERSION }} --no-git-tag-version- name: 📤 Upload to npmworking-directory: frontend@@ -85,3 +87,22 @@ jobs:NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}NPM_TOKEN: ${{ secrets.NPM_TOKEN }}run: npm publish --access public++ - name: 📝 Comment PR+ uses: actions/github-script@v7+ with:+ script: |+ try {+ const pullRequest = await github.rest.search.issuesAndPullRequests({+ q: context.sha+ });++ await github.rest.issues.createComment({+ owner: context.repo.owner,+ repo: context.repo.repo,+ issue_number: pullRequest.data.items[0].number,+ body: '🚀 Development release published. You may be able to view the changes at https://marimo.app?v${{ env.MARIMO_VERSION }}+ });+ } catch (err) {+ // ignore+ }