9a3e7a2f50
- switch root package manager to pnpm 10.33.4 via packageManager field - add .npmrc with node-linker=hoisted for RN/Expo compatibility - convert yarn resolutions to pnpm.overrides; pin psl@1.9.0 and @types/psl@1.1.1 to keep types resolving under exports-aware resolution - pin react-compiler-runtime and babel-plugin-react-compiler to real rc.3 (the deprecated "Wrong version name was published" tag would otherwise resolve) - add pnpm.onlyBuiltDependencies allowlist for @sentry/cli, core-js-pure, esbuild, unrs-resolver - regenerate pnpm-lock.yaml; delete yarn.lock; drop postinstall-postinstall - update all workflows, Dockerfile, Dockerfile.embedr (root-level), Makefile, conductor.json; bskyembed/bskylink/bskyogcard/dev-env stay on yarn - update docs (CLAUDE.md, docs/build.md, docs/testing.md, docs/localization.md, bskyweb/README.md, scripts/push-notification/README.md, BlueskyClip/README.md) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: Nightly Update Source Languages
|
|
on:
|
|
schedule:
|
|
- cron: "0 2 * * *" # run at 2 AM UTC
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
extract-languages:
|
|
name: Nightly Update Source Languages
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
# Give the default GITHUB_TOKEN write permission to commit and push the
|
|
# added or changed files to the repository.
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ssh-key: ${{secrets.GH_ACTION_DEPLOY_KEY}}
|
|
- uses: pnpm/action-setup@v4
|
|
- name: Install node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
cache: pnpm
|
|
- name: pnpm install
|
|
uses: Wandalen/wretry.action@master
|
|
with:
|
|
command: pnpm install --frozen-lockfile
|
|
attempt_limit: 3
|
|
attempt_delay: 2000
|
|
- name: Extract language strings
|
|
run: pnpm intl:extract
|
|
- name: Create commit
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
|
with:
|
|
commit_message: Nightly source-language update
|
|
file_pattern: ./src/locale/locales/en/messages.po
|
|
- name: Push source lang to Crowdin
|
|
uses: crowdin/github-action@v2
|
|
with:
|
|
upload_sources: true
|
|
upload_sources_args: "-b main"
|
|
upload_translations: false
|
|
push_translations: false
|
|
push_sources: false
|
|
create_pull_request: false
|
|
env:
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|