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.

chore: fix release workflow

白熱2e460ed96cec
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1839324e19..7e199eca9a 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -34,9 +34,11 @@ jobs:
- name: 🚚 Get release type
id: release-type
run: |
- if [[ ${{ github.ref_name }} =~ -(alpha)\. ]]; then
+ if [[ ${{ github.ref_name }} =~ -(alpha|beta|rc)\. ]]; then
extracted_type="${BASH_REMATCH[1]}"
echo "value=$extracted_type" >> $GITHUB_OUTPUT
+ else
+ echo "value=stable" >> $GITHUB_OUTPUT
fi
release-npm:
@@ -70,9 +72,9 @@ jobs:
- name: 🐙 Publish
run: |
if [[ ${{ needs.prepare.outputs.release_type }} == "alpha" ]]; then
- pnpm publish --access public --tag ${{ needs.prepare.outputs.release_type }} -r
+ pnpm publish --access public --tag ${{ needs.prepare.outputs.release_type }} -r --no-git-checks
else
- pnpm publish --access public -r
+ pnpm publish --access public -r --no-git-checks
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -109,9 +111,9 @@ jobs:
- name: 🐙 Publish
run: |
if [[ ${{ needs.prepare.outputs.release_type }} == "alpha" ]]; then
- pnpm publish --access public --tag ${{ needs.prepare.outputs.release_type }} -r
+ pnpm publish --access public --tag ${{ needs.prepare.outputs.release_type }} -r --no-git-checks
else
- pnpm publish --access public -r
+ pnpm publish --access public -r --no-git-checks
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}
diff --git a/.release-it.json b/.release-it.json
index 802015fbdf..72d2c2050b 100644
--- a/.release-it.json
+++ b/.release-it.json
@@ -1,14 +1,19 @@
{
"git": {
"commitMessage": "chore(release): release v${version}",
- "tagName": "v${version}",
- "requireCleanWorkingDir": false
+ "tagName": "v${version}"
+ },
+ "npm": {
+ "publish": false
+ },
+ "github": {
+ "release": true
},
- "npm": false,
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
- "infile": "CHANGELOG.md"
+ "infile": "CHANGELOG.md",
+ "ignoreRecommendedBump": true
},
"@release-it-plugins/workspaces": {