@@ -35,61 +35,55 @@ jobs:
3535 exit 0
3636 fi
3737
38- - name : Use Node.js
39- uses : actions/setup-node@v2
40- with :
41- node-version : 20.12.2
38+ - name : Build hermetic image
39+ run : docker build -f Dockerfile.repro -t lingo-repro:20.12.2 .
4240
43- - name : Install pnpm
44- uses : pnpm/action-setup@v4
45- id : pnpm-install
46- with :
47- version : 9.12.3
48- run_install : false
41+ - name : Prepare pnpm store path
42+ run : echo "REPRO_PNPM_STORE=${{ runner.temp }}/pnpm-store" >> $GITHUB_ENV
4943
50- - name : Configure pnpm cache
51- id : pnpm-cache
52- run : echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
53- - uses : actions/cache@v3
44+ - name : Cache pnpm store
45+ uses : actions/cache@v3
5446 with :
55- path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
47+ path : ${{ env.REPRO_PNPM_STORE }}
5648 key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
5749 restore-keys : |
5850 ${{ runner.os }}-pnpm-store-
5951
60- - name : Install deps
61- run : pnpm install
52+ - name : Install deps (container)
53+ run : REPRO_PNPM_STORE="${{ env.REPRO_PNPM_STORE }}" bash scripts/repro/exec.sh pnpm install --frozen-lockfile
6254
63- - name : Lingo.dev
55+ - name : Lingo.dev (container)
6456 if : ${{ !inputs.skip_lingo }}
65- uses : ./
66- with :
67- api-key : ${{ secrets.LINGODOTDEV_API_KEY }}
68- pull-request : true
69- parallel : true
7057 env :
7158 GH_TOKEN : ${{ github.token }}
72-
73- - name : Setup
59+ LINGODOTDEV_API_KEY : ${{ secrets.LINGODOTDEV_API_KEY }}
7460 run : |
75- pnpm turbo telemetry disable
61+ REPRO_PNPM_STORE="${{ env.REPRO_PNPM_STORE }}" bash scripts/repro/exec.sh \
62+ npx lingo.dev@latest ci \
63+ --api-key "$LINGODOTDEV_API_KEY" \
64+ --pull-request "true" \
65+ --commit-message "feat: update translations via @LingoDotDev" \
66+ --pull-request-title "feat: update translations via @LingoDotDev" \
67+ --working-directory "." \
68+ --process-own-commits "false" \
69+ --parallel true
7670
77- - name : Configure Turbo cache
78- uses : dtinth/setup-github-actions-caching-for- turbo@v1
71+ - name : Disable turbo telemetry (container)
72+ run : REPRO_PNPM_STORE="${{ env.REPRO_PNPM_STORE }}" bash scripts/repro/exec.sh pnpm turbo telemetry disable
7973
80- - name : Build
81- run : pnpm turbo build --force
74+ - name : Build (container)
75+ run : REPRO_PNPM_STORE="${{ env.REPRO_PNPM_STORE }}" bash scripts/repro/exec.sh pnpm turbo build --force
8276
83- - name : Test
84- run : pnpm turbo test --force
77+ - name : Test (container)
78+ run : REPRO_PNPM_STORE="${{ env.REPRO_PNPM_STORE }}" bash scripts/repro/exec.sh pnpm turbo test --force
8579
8680 - name : Create Release Pull Request or Publish to npm
8781 id : changesets
8882 uses : changesets/action@v1
8983 with :
9084 title : " chore: bump package versions"
91- version : pnpm changeset version
92- publish : pnpm changeset publish
85+ version : REPRO_PNPM_STORE="${{ env.REPRO_PNPM_STORE }}" bash scripts/repro/exec.sh pnpm changeset version
86+ publish : REPRO_PNPM_STORE="${{ env.REPRO_PNPM_STORE }}" bash scripts/repro/exec.sh pnpm changeset publish
9387 commit : " chore: bump package version"
9488 env :
9589 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments