Skip to content

Commit

Permalink
build: execute workspace's commands in parallel (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
tien authored Jul 31, 2024
1 parent 7942c6b commit c10b139
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/snapshot-publishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- run: yarn build:packages

- run: yarn workspaces foreach -At --no-private version 0.0.0-snapshot.${{ github.run_number }}+$(git rev-parse --short HEAD) --immediate
- run: yarn workspaces foreach -Apt --no-private version 0.0.0-snapshot.${{ github.run_number }}+$(git rev-parse --short HEAD) --immediate

- run: scripts/publish-snapshot.sh
env:
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ while IFS= read -r -d '' package_json; do
fi
done < <(find . -name package.json -type f -not -path "*/node_modules/*" -print0)

yarn workspaces foreach -At --no-private npm publish --access public --tag snapshot --tolerate-republish
yarn workspaces foreach -Apt --no-private npm publish --access public --tag snapshot --tolerate-republish

# Delete only the created LICENSE files
for file in "${created_files[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ while IFS= read -r -d '' package_json; do
fi
done < <(find . -name package.json -type f -not -path "*/node_modules/*" -print0)

yarn workspaces foreach -At --no-private npm publish --access public --tolerate-republish
yarn workspaces foreach -Apt --no-private npm publish --access public --tolerate-republish
yarn changeset tag

# Delete only the created LICENSE files
Expand Down

0 comments on commit c10b139

Please sign in to comment.