Skip to content

Commit 999d1ee

Browse files
committed
feat: extract build-translate-package action
1 parent f864cde commit 999d1ee

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build Translate Translate Package
2+
description: Action that builds the translate package and makes it executable
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Build packages
7+
shell: bash
8+
run: pnpm build:packages
9+
10+
- name: Link binaries and make executable
11+
shell: bash
12+
run: |
13+
chmod +x ./packages/translate/dist/index.js
14+
echo "Verifying translate-docs binary exists"
15+
ls -la ./packages/translate/dist/index.js || true

.github/actions/setup/action.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,3 @@ runs:
2323
- name: Install dependencies
2424
shell: bash
2525
run: pnpm install --frozen-lockfile
26-
27-
- name: Build packages
28-
shell: bash
29-
run: pnpm build:packages
30-
31-
- name: Link binaries and make executable
32-
shell: bash
33-
run: |
34-
chmod +x ./packages/translate/dist/index.js
35-
echo "Verifying translate-docs binary exists"
36-
ls -la ./packages/translate/dist/index.js || true

.github/actions/translate-docs/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ runs:
8888
- name: Setup Tools
8989
if: steps.check_branch.outputs.exists == 'false'
9090
uses: ./.github/actions/setup
91+
92+
- name: Build packages
93+
if: steps.check_branch.outputs.exists == 'false'
94+
uses: ./.github/actions/build-translate-package
9195

9296
- name: Run translation
9397
if: steps.check_branch.outputs.exists == 'false'

0 commit comments

Comments
 (0)