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

This commit is contained in:
LongYinan
2023-09-14 17:37:32 -07:00
committed by GitHub
parent d01203daad
commit d68545cb29
2 changed files with 4 additions and 6 deletions

View File

@@ -24,14 +24,12 @@ jobs:
uses: ./.github/actions/setup-node uses: ./.github/actions/setup-node
- name: Check Language Key - name: Check Language Key
if: github.ref != 'refs/heads/master' if: github.ref != 'refs/heads/master'
working-directory: ./packages/i18n run: yarn workspace @affine/i18n run sync-languages:check
run: yarn run sync-languages:check
env: env:
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }} TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}
- name: Sync Languages - name: Sync Languages
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
working-directory: ./packages/i18n run: yarn workspace @affine/i18n run sync-languages
run: yarn run sync-languages
env: env:
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }} TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}

View File

@@ -17,9 +17,9 @@
"scripts": { "scripts": {
"build": "node build.mjs", "build": "node build.mjs",
"dev": "node dev.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", "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": [], "keywords": [],
"repository": { "repository": {