LongYinan
a843dcd851
fix: resolve cycle imports and prevent it by oxlint ( #5103 )
2023-11-29 04:43:27 +00:00
LongYinan
0ee2ecc1e9
ci: always perform fresh build in deployment job ( #5066 )
2023-11-28 06:59:50 +00:00
LongYinan
aaaed5ac14
fix(core): nx cache configuration ( #5065 )
2023-11-28 06:59:48 +00:00
liuyi
91efca107a
refactor(server): standarderlize metrics and trace with OTEL ( #5054 )
...
you can now export span to Zipkin and metrics to Prometheus when developing locally
follow the docs of OTEL: https://opentelemetry.io/docs/instrumentation/js/exporters/
<img width="2357" alt="image" src="https://github.com/toeverything/AFFiNE/assets/8281226/ec615e1f-3e91-43f7-9111-d7d2629e9679 ">
2023-11-24 15:19:22 +00:00
LongYinan
42f4045ad6
chore: adjust the request memory size and replica count ( #5046 )
2023-11-24 06:19:38 +00:00
LongYinan
3499dbbb7f
feat: upgrade dependencies and lockfile ( #5016 )
...
- Close https://github.com/toeverything/AFFiNE/security/dependabot/47
2023-11-23 05:18:05 +00:00
Peng Xiao
3839a9bd15
build(electron): asar ( #4965 )
...
Due to restrictions on how Electron package works, the `node_modules` should not be hoisted and not to use s/h-links at all. This is why we need to have two separate installs for electron and non-electron packages in the build.
Tested via the following script
```bash
#!/bin/bash
echo "step 1: clean up"
find . -name "node_modules" -prune -exec rm -rf '{}' +
# git clean -dfX
build_type=canary
echo "step 2: install web dependencies"
# firstly, build web static
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 SENTRYCLI_SKIP_DOWNLOAD=1 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=1 yarn
echo "step 3: generate assets"
BUILD_TYPE="$build_type" yarn workspace @affine/electron generate-assets
# cleanup node_modules
find . -name "node_modules" -prune -exec rm -rf '{}' +
echo "step 4: install electron dependencies"
# install electron deps
yarn config set nmHoistingLimits workspaces
yarn config set enableScripts false
yarn config set nmMode classic
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 yarn workspaces focus @affine/electron @affine/monorepo
echo "step 5: build native"
# build native
yarn workspace @affine/native build
yarn workspace @affine/storage build
echo "step 6: build electron"
# build electron
yarn workspace @affine/electron build
echo "step 7: package electron"
# package
SKIP_GENERATE_ASSETS=1 BUILD_TYPE="$build_type" HOIST_NODE_MODULES=1 yarn workspace @affine/electron package
```
2023-11-21 17:44:30 +00:00
LongYinan
703fad6a0d
ci: prevent error if rust build is cached by nx ( #4951 )
...
If Rust build was cached by nx, only the output file will be presented. The chmod command will be failed in this case like: https://github.com/toeverything/AFFiNE/actions/runs/6874496337/job/18697360212
2023-11-16 21:57:22 +08:00
LongYinan
e7e617a791
chore: change default branch to canary ( #4948 )
2023-11-15 07:46:50 +00:00
LongYinan
cc2ade601c
ci: only disable postinstall on macOS in nightly desktop build ( #4938 )
2023-11-14 23:03:49 +08:00
LongYinan
8bcc886b46
ci: disable postinstall in nightly desktop build ( #4930 )
...
Should be part of https://github.com/toeverything/AFFiNE/pull/4885
2023-11-14 14:45:52 +08:00
DarkSky
ac3756ea23
chore: cleanup deployment
2023-11-12 11:22:21 +08:00
LongYinan
927a6489f9
ci: adjust the beta cluster configuration
2023-11-10 00:22:45 +08:00
LongYinan
839f500979
ci: disable postinstall on macOS build ( #4885 )
2023-11-09 11:58:55 +00:00
Joooye_34
a8bff81a7e
ci: use resolutions to resolve building error in mac-os ( #4878 )
2023-11-09 02:43:47 +00:00
EYHN
ecd5db2952
ci: add oxlint ( #4867 )
2023-11-08 17:54:41 +08:00
LongYinan
6aaf550241
ci: fix wrangler deploy ( #4803 )
2023-11-01 09:12:00 +00:00
LongYinan
2d62ec72a7
ci: dynamic setup server deploy environment by release tag ( #4790 )
2023-11-01 07:38:15 +00:00
Joooye_34
7b204cc611
Merge pull request #4766 from toeverything/chore/stripe-env
...
chore(server): add stripe env to deploy.yml
2023-10-30 17:25:23 +00:00
Joooye_34
6fcdb05925
chore(server): add stripe env
2023-10-31 00:12:17 +08:00
LongYinan
99b35c7a93
ci: reduce deployment events on pull requests
2023-10-30 19:57:54 +08:00
LongYinan
fc3516acfb
Merge pull request #4746 from toeverything/data-migrations-system
...
feat(server): add data migration system
2023-10-30 06:36:18 +00:00
forehalo
98d0ac3c90
feat(server): add data migration system
2023-10-30 11:12:09 +08:00
dependabot[bot]
2a4495f7ee
ci: bump cloudflare/wrangler-action from 3.3.1 to 3.3.2 ( #4717 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-28 12:08:49 +00:00
LongYinan
b13705ba3d
ci: remove setup-maker to reduce release duration ( #4710 )
2023-10-24 10:09:40 +00:00
dependabot[bot]
551287ab44
ci: bump actions/upload-artifact from 2 to 3 ( #4701 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-24 09:36:07 +00:00
dependabot[bot]
113105181d
ci: bump docker/login-action from 2 to 3 ( #4702 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-24 09:01:09 +00:00
dependabot[bot]
fd6536ea90
ci: bump actions/checkout from 2 to 4 ( #4700 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-24 06:00:00 +00:00
dependabot[bot]
a42d218962
ci: bump actions/setup-node from 3 to 4 ( #4704 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-24 05:59:16 +00:00
dependabot[bot]
14bee1811c
ci: bump docker/setup-qemu-action from 2 to 3 ( #4703 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-24 05:13:58 +00:00
dependabot[bot]
5573afc8d5
ci: bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 ( #4686 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 07:39:51 +00:00
dependabot[bot]
8b703fd9ad
ci: bump docker/build-push-action from 4 to 5 ( #4690 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 07:23:04 +00:00
dependabot[bot]
2a97194c75
ci: bump docker/setup-buildx-action from 2 to 3 ( #4689 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 07:22:34 +00:00
dependabot[bot]
13b6bb7ee3
ci: bump kentaro-m/auto-assign-action from 1.2.4 to 1.2.5 ( #4687 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 07:22:02 +00:00
dependabot[bot]
43220f6db6
ci: bump cloudflare/wrangler-action from 2.0.0 to 3.3.1 ( #4688 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 07:21:54 +00:00
LongYinan
9820c80ee2
ci: dependabot group config
2023-10-23 15:03:50 +08:00
LongYinan
1dd17c6334
ci: fix electron app nightly build workflow ( #4684 )
2023-10-23 06:30:10 +00:00
Alex Yang
d9e2d17a26
refactor: cleanup code
2023-10-20 19:28:04 -05:00
LongYinan
890905ed0e
ci: fix electron make script on Windows
2023-10-19 22:44:55 +08:00
LongYinan
54aad58388
ci: fix electron make script on Windows ( #4666 )
2023-10-19 13:00:11 +00:00
LongYinan
352420b881
build: fix native module in aarch64 docker image ( #4656 )
2023-10-19 08:59:02 +00:00
Alex Yang
97d8660a54
refactor(electron): fix vitest and add behavior test ( #4655 )
2023-10-18 22:14:30 -05:00
Joooye_34
bed9310519
refactor(infra): directory structure ( #4615 )
2023-10-18 15:30:08 +00:00
DarkSky
63ca9671be
feat: add captcha support for sign in/up ( #4582 )
2023-10-18 08:06:07 +00:00
Alex Yang
524e48c8e6
refactor(electron): typescript check on build scripts ( #4650 )
2023-10-18 06:13:47 +00:00
Alex Yang
bb046a12dc
refactor(native): remove unused code ( #4651 )
2023-10-17 18:19:06 -05:00
LongYinan
e831f612e8
fix(electron): release desktop app workflow ( #4594 )
2023-10-17 06:15:55 +00:00
Peng Xiao
5e9eeaddbd
build(electron): allow customizing channel type for internal build ( #4511 )
2023-10-17 01:15:19 +00:00
Joooye_34
6ea10860b4
refactor(infra): record legacy data to improve testing stability ( #4590 )
2023-10-13 03:03:42 +00:00
Qinghao Huang
b440c3a820
docs: update CLA.md ( #4541 )
2023-09-30 00:26:50 +00:00