Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

build: replace version

himself656d1345ffe503
diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml
index 977f2cedcb..1287d182a1 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -32,6 +32,8 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
+ - name: Replace Version
+ run: ./scripts/replace-version.sh ${{ env.RELEASE_VERSION }}
- name: generate-assets
working-directory: apps/electron
run: yarn generate-assets
@@ -91,6 +93,8 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
+ - name: Replace Version
+ run: ./scripts/replace-version.sh ${{ env.RELEASE_VERSION }}
- uses: actions/download-artifact@v3
with:
name: before-make-web-static
diff --git a/scripts/set-version.sh b/scripts/set-version.sh
index fc433fab06..bf421bb821 100755
--- a/scripts/set-version.sh
+++ b/scripts/set-version.sh
@@ -6,5 +6,3 @@ for DIR in $(yarn workspaces list --json | jq -r '.location'); do
jq ".version = \"$1\"" "$DIR"/package.json > tmp.json && mv tmp.json "$DIR"/package.json
fi
done
-
-git add . && git commit -m "v$1"