Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

ci: fix npm registry of actions (#803)

白熱9ff9fa6bdb74
diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml
index 32ab3c821c..1c22569d4f 100644
--- a/.github/workflows/preview-deploy.yml
+++ b/.github/workflows/preview-deploy.yml
@@ -67,9 +67,9 @@ jobs:
body: |
## View Deployment
- 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧
+ 🥐 🍔 🥓 🥗 🥘 🌯 🍚 🍛 🍖 🍭 🍧 🍝 🥪 🥖 🍪
Still cooking, please come back later
- 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧
+ 🥙 🥮 🥨 🌭 🍦 🍙 🍕 🍰 🍮 🍜 🍡 🍱 🍿 🍕 🥟
edit-mode: replace
build-demo:
@@ -77,7 +77,7 @@ jobs:
needs: [setup]
outputs:
- preview-url: ${{ steps.vercel-demo.outputs.preview-url }}
+ preview-url: ${{ steps.vercel-demo-dev.outputs.preview-url == '' && steps.vercel-demo.outputs.preview-url || steps.vercel-demo-dev.outputs.preview-url }}
steps:
- name: Checkout
@@ -123,12 +123,22 @@ jobs:
- name: 🚀 Deploy to Vercel (demo)
uses: amondnet/vercel-action@v25
+ if: ${{ needs.setup.outputs.ref == '' }}
+ id: vercel-demo-dev
+ with:
+ vercel-token: ${{ secrets.VERCEL_TOKEN }}
+ vercel-org-id: ${{ secrets.ORG_ID}}
+ vercel-project-id: ${{ secrets.PROJECT_ID}}
+ vercel-args: '--prod'
+
+ - name: 🚀 Deploy to Vercel (demo)
+ uses: amondnet/vercel-action@v25
+ if: ${{ needs.setup.outputs.ref != '' }}
id: vercel-demo
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.ORG_ID}}
vercel-project-id: ${{ secrets.PROJECT_ID}}
- vercel-args: ${{ needs.setup.outputs.ref == '' && '--prod' }}
build-storybook:
runs-on: ubuntu-latest
diff --git a/.github/workflows/release-unstable.yml b/.github/workflows/release-unstable.yml
index 7486b2853d..b61955b0e7 100644
--- a/.github/workflows/release-unstable.yml
+++ b/.github/workflows/release-unstable.yml
@@ -26,6 +26,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
+ registry-url: https://registry.npmjs.org
- name: Install pnpm
uses: pnpm/action-setup@v2
@@ -81,7 +82,6 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
- registry-url: https://registry.npmjs.org
- name: Install pnpm
uses: pnpm/action-setup@v2