Skip to content

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.

chore: add npm publish retry (#2948)

Myles Scolnick0f39306452cf
diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.yml
index de2a3d8f66..0813defcfa 100644
--- a/.github/workflows/dev-release.yml
+++ b/.github/workflows/dev-release.yml
@@ -90,7 +90,13 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
+ run: |
+ for i in {1..3}; do
+ npm publish --access public && break || {
+ echo "Publish attempt $i failed, retrying..."
+ sleep 10
+ }
+ done
- name: 📦 Update package.json name to @marimo-team/islands
working-directory: frontend
@@ -112,7 +118,13 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
+ run: |
+ for i in {1..3}; do
+ npm publish --access public && break || {
+ echo "Publish attempt $i failed, retrying..."
+ sleep 10
+ }
+ done
- name: 📝 Comment PR
uses: actions/github-script@v7
diff --git a/.github/workflows/marimo-bot.yml b/.github/workflows/marimo-bot.yml
index ac190157f3..90576d15ca 100644
--- a/.github/workflows/marimo-bot.yml
+++ b/.github/workflows/marimo-bot.yml
@@ -135,7 +135,13 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
+ run: |
+ for i in {1..3}; do
+ npm publish --access public && break || {
+ echo "Publish attempt $i failed, retrying..."
+ sleep 10
+ }
+ done
- name: 📝 Update PR Comment
uses: actions/github-script@v7
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 349c10008e..0adcd2691c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -76,7 +76,13 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
+ run: |
+ for i in {1..3}; do
+ npm publish --access public && break || {
+ echo "Publish attempt $i failed, retrying..."
+ sleep 10
+ }
+ done
- name: 📦 Update package.json name to @marimo-team/islands
working-directory: frontend
@@ -98,7 +104,13 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
+ run: |
+ for i in {1..3}; do
+ npm publish --access public && break || {
+ echo "Publish attempt $i failed, retrying..."
+ sleep 10
+ }
+ done
publish_docker:
name: 🐋 Publish Docker images