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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
ci: fix nightly builds (#590)
白熱004814dc19b2
diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.ymlindex abdf706c79..9638284cd5 100644--- a/.github/workflows/preview-deploy.yml+++ b/.github/workflows/preview-deploy.yml@@ -198,7 +198,7 @@ jobs:description: |Ref: ${{ needs.setup.outputs.ref }}- CI Pipeline: Success 🏆+ 🏆 CI Pipeline: Success**[View Deployment]**- [Doc](${{ needs.build-demo.outputs.preview-url }}/doc/)- [Sheet](${{ needs.build-demo.outputs.preview-url }}/sheet/)@@ -208,9 +208,10 @@ jobs:- [Storybook](${{ needs.build-storybook.outputs.preview-url }}/)nofail: falsenodetail: false+ nocontext: false+ noprefix: truecolor: 0x00b894username: GitHub Actions- nocontext: false- name: 👾 Discord Notificationuses: sarisia/actions-status-discord@v1@@ -221,14 +222,15 @@ jobs:description: |Ref: ${{ needs.setup.outputs.ref }}- CI Pipeline: Unsuccessful 📛+ 📛 CI Pipeline: Unsuccessful**[PR ID]**#${{ needs.setup.outputs.id }}nofail: falsenodetail: false+ nocontext: false+ noprefix: truecolor: 0xd63031username: GitHub Actions- nocontext: false# ================= Create Comment =================- name: 🧽 Find And Delete Commentdiff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.ymlindex 6ec46d5011..851db7b981 100644--- a/.github/workflows/release-nightly.yml+++ b/.github/workflows/release-nightly.yml@@ -2,13 +2,13 @@ name: 🥷 Release Nightlyon:schedule:- - cron: '0 16 * * *'+ - cron: '0 19 * * *'permissions:contents: readjobs:- build:+ release-nightly:if: github.repository == 'dream-num/univer'runs-on: ubuntu-latest@@ -60,7 +60,7 @@ jobs:- name: Set all monorepo's package versionrun: |for package in $(ls packages); do- node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./packages/$package/package.json')); package.version = '${{ steps.nightly-version.outputs.version }}'; fs.writeFileSync('./packages/$package/package.json', JSON.stringify(package, null, 2));"+ node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./packages/$package/package.json')); package.version = '${{ steps.nightly-version.outputs.version }}'; fs.writeFileSync('./packages/$package/package.json', JSON.stringify(package, null, 4));"done- name: Install dependencies@@ -71,7 +71,51 @@ jobs:- name: Set publishing configrun: |- pnpm config set '${{ secrets.VERDACCIO_URL }}:_authToken' "${{ secrets.VERDACCIO_TOKEN }}"+ echo '\n${{ secrets.VERDACCIO_URL }}:_authToken=${{ secrets.VERDACCIO_TOKEN }}' >> .npmrc+ echo '\nregistry=https:${{ secrets.VERDACCIO_URL }}' >> .npmrc- name: Publishrun: pnpm publish --access public --tag nightly -r++ # ================= Notify Discord =================+ - name: 👾 Discord Notification+ uses: sarisia/actions-status-discord@v1+ if: ${{ success() }}+ with:+ webhook: ${{ secrets.DISCORD_WEBHOOK }}+ status: ${{ job.status }}+ description: |+ 🌝 Nightly release: Successful++ 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉+ Release version: ${{ steps.nightly-version.outputs.version }}+ 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉++ Have a good dream! 🌙+ nofail: false+ nodetail: false+ nocontext: false+ noprefix: true+ color: 0x00b894+ username: Nightly Release++ - name: 👾 Discord Notification+ uses: sarisia/actions-status-discord@v1+ if: ${{ failure() }}+ with:+ webhook: ${{ secrets.DISCORD_WEBHOOK }}+ status: ${{ job.status }}+ description: |+ 🌚 Nightly release: Unsuccessful 💩++ 👿 👿 👿 👿 👿 👿 👿 👿 👿+ Failed version: ${{ steps.nightly-version.outputs.version }}+ 👿 👿 👿 👿 👿 👿 👿 👿 👿++ Don't worry, tomorrow will be better! 🌞+ nofail: false+ nodetail: false+ nocontext: false+ noprefix: true+ color: 0xd63031+ username: Nightly Releasediff --git a/.npmrc b/.npmrcindex 0565db7652..c27d73929e 100644--- a/.npmrc+++ b/.npmrc@@ -1,3 +1,3 @@-auto-install-peers=true-git-checks=false-strict-peer-dependencies=false\ No newline at end of file+auto-install-peers=true+git-checks=false+strict-peer-dependencies=false