Skip to content

Commit

Permalink
chore: Move build to setup script (#3961)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Dec 30, 2024
1 parent c332838 commit 257de73
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ runs:
node-version: ${{ inputs.node-version }}

- name: Install
run: pnpm i
run: |
pnpm i
pnpm run setup
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/build-dictionaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
pnpm run lint:fix:sort-source-files
- name: Re-Install to build
run: |
pnpm i
pnpm run setup
- name: Build
run: |
pnpm run conditional-build
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ jobs:
- name: Setup
uses: ./.github/actions/setup

- name: Install / Build
run: |
pnpm i
# Release Please has already incremented versions and published tags, so we just
# need to publish all unpublished versions to NPM here
# See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Install
run: |
pnpm i
pnpm run setup
# Catch any new dictionaries and add them to the config.
- name: Update Release-Please packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-dictionaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Install
run: |
pnpm i
pnpm run setup
- name: Lint
run: |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ Run `pnpm` to make sure everything is installed.

```sh
pnpm i
pnpm run setup
```

Run `create-dictionary` to start the Yeoman script.
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"clean": "shx rm -rf \"packages/*/*.txt.gz\" \"dictionaries/*/*.txt.gz\"",
"readme:generate-doc-dictionaries": "gen-dictionary-info",
"readme:inject": "inject-markdown \"*.md\" \"dictionaries/*/README.md\" && prettier -w \"*.md\" \"dictionaries/*/README.md\"",
"prepare": "pnpm -r run --stream --workspace-concurrency 3 prepare:dictionary",
"prepublishOnly": "pnpm prepare:dictionaries",
"prepare:dictionaries": "pnpm -r run --stream --workspace-concurrency 3 prepare:dictionary",
"setup": "pnpm i && pnpm prepare:dictionaries",
"pub-recover": "lerna publish from-package --no-push --no-private --concurrency 1",
"#update-dictionaries": "# Update dictionaries will run the update-dictionary script in each dictionary package.",
"update-dictionaries": "pnpm -r run --stream --workspace-concurrency 2 update-dictionary",
Expand Down

0 comments on commit 257de73

Please sign in to comment.