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.

chore(i18n): fix sync languages script (#4367)

LongYinand68545cb290f
diff --git a/.github/workflows/languages-sync.yml b/.github/workflows/languages-sync.yml
index 9e4da019b0..9dd1346457 100644
--- a/.github/workflows/languages-sync.yml
+++ b/.github/workflows/languages-sync.yml
@@ -24,14 +24,12 @@ jobs:
uses: ./.github/actions/setup-node
- name: Check Language Key
if: github.ref != 'refs/heads/master'
- working-directory: ./packages/i18n
- run: yarn run sync-languages:check
+ run: yarn workspace @affine/i18n run sync-languages:check
env:
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}
- name: Sync Languages
if: github.ref == 'refs/heads/master'
- working-directory: ./packages/i18n
- run: yarn run sync-languages
+ run: yarn workspace @affine/i18n run sync-languages
env:
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}
diff --git a/packages/i18n/package.json b/packages/i18n/package.json
index 5274bf9dc9..1397dc7096 100644
--- a/packages/i18n/package.json
+++ b/packages/i18n/package.json
@@ -17,9 +17,9 @@
"scripts": {
"build": "node build.mjs",
"dev": "node dev.mjs",
- "sync-languages": "NODE_OPTIONS=--experimental-fetch ts-node-esm src/scripts/sync.ts",
+ "sync-languages": "ts-node-esm -P ./tsconfig.node.json src/scripts/sync.ts",
"sync-languages:check": "yarn run sync-languages --check",
- "download-resources": "NODE_OPTIONS=--experimental-fetch ts-node-esm src/scripts/download.ts"
+ "download-resources": "ts-node-esm -P ./tsconfig.node.json src/scripts/download.ts"
},
"keywords": [],
"repository": {