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 release (#593)
白熱0c09ab25f7c2
diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.ymlindex 5c7c2b1f42..23ac70b6b7 100644--- a/.github/workflows/release-nightly.yml+++ b/.github/workflows/release-nightly.yml@@ -2,7 +2,7 @@ name: 🥷 Release Nightlyon:schedule:- - cron: '30 1 * * *'+ - cron: '0 16 * * *'permissions:contents: read@@ -20,6 +20,7 @@ jobs:uses: actions/setup-node@v3with:node-version: 18+ registry-url: ${{ secrets.VERDACCIO_URL }}- name: Install pnpmuses: pnpm/action-setup@v2@@ -40,10 +41,10 @@ jobs:restore-keys: |${{ runner.os }}-pnpm-- - name: Get package version(version + date)+ - name: 📌 Get package version (version + date)id: nightly-versionrun: |- echo "::set-output name=version::$(node -p "require('./package.json').version")-nightly-$(date +%Y%m%d%H%M)"+ echo "::set-output name=version::$(node -p "require('./package.json').version")-nightly.$(date +%Y%m%d%H%M)"# - name: Create tag# uses: actions/github-script@v5@@ -57,66 +58,62 @@ jobs:# sha: context.sha# })- - name: Set all monorepo's package version+ - name: 🔏 Set all monorepo's package versionrun: |for package in $(ls packages); donode -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+ - name: 🚚 Install dependenciesrun: pnpm install- - name: Build+ - name: 📦 Buildrun: pnpm run build- - name: Set publishing config- run: pnpm config set '${NODE_REGISTRY}:_authToken' "${NODE_AUTH_TOKEN}"+ - name: 🐙 Publish+ run: pnpm publish --access public --tag nightly -renv:- NODE_REGISTRY: ${{ secrets.VERDACCIO_URL }}NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}-- - name: Publish- run: pnpm publish --access public --tag nightly -r# ================= Notify Discord =================- name: 👾 Discord Notificationuses: sarisia/actions-status-discord@v1if: ${{ 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+ 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 Notificationuses: sarisia/actions-status-discord@v1if: ${{ 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 Release+ 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 Release