-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Rework deduplication github actions
- Loading branch information
Showing
3 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: 'Deduplicate' | ||
|
||
inputs: | ||
strategy: | ||
description: 'yarn-deduplicate strategy' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Run yarn-deduplicate (highest) | ||
if: ${{ env.STRATEGY == 'highest' }} | ||
run: | | ||
yarn global add yarn-deduplicate | ||
yarn-deduplicate --strategy highest | ||
yarn-deduplicate --strategy fewer --packages @types/node # @types/node@* causes unneeded duplication in highest mode | ||
yarn | ||
- name: Run yarn-deduplicate (fewer) | ||
if: ${{ env.STRATEGY == 'fewer' }} | ||
run: | | ||
yarn global add yarn-deduplicate | ||
yarn-deduplicate --strategy fewer --exclude @types/unist # @types/unist gets downgraded in this mode | ||
yarn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters