mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
build: replace version
This commit is contained in:
@@ -32,6 +32,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: ./.github/actions/setup-node
|
uses: ./.github/actions/setup-node
|
||||||
|
- name: Replace Version
|
||||||
|
run: ./scripts/replace-version.sh ${{ env.RELEASE_VERSION }}
|
||||||
- name: generate-assets
|
- name: generate-assets
|
||||||
working-directory: apps/electron
|
working-directory: apps/electron
|
||||||
run: yarn generate-assets
|
run: yarn generate-assets
|
||||||
@@ -91,6 +93,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: ./.github/actions/setup-node
|
uses: ./.github/actions/setup-node
|
||||||
|
- name: Replace Version
|
||||||
|
run: ./scripts/replace-version.sh ${{ env.RELEASE_VERSION }}
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: before-make-web-static
|
name: before-make-web-static
|
||||||
|
|||||||
@@ -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
|
jq ".version = \"$1\"" "$DIR"/package.json > tmp.json && mv tmp.json "$DIR"/package.json
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
git add . && git commit -m "v$1"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user