-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: set
latest
NPM tag on release (#446)
* Add script * Remove publish scripts * Update workflow * Fix path
- Loading branch information
1 parent
1bf022a
commit 163ba87
Showing
7 changed files
with
17 additions
and
45 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
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,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
for dir in `find packages -mindepth 1 -maxdepth 1 -type d | sort -nr`; do | ||
json=$(<"$dir/package.json") | ||
# Remove leading/trailing whitespace | ||
json=$(echo "$json" | tr -d '\n' | tr -d '\r' | sed 's/ //g') | ||
# Extract name and version | ||
name=$(echo "$json" | sed 's/.*"name":"\([^"]*\)".*/\1/') | ||
version=$(echo "$json" | sed 's/.*"version":"\([^"]*\)".*/\1/') | ||
echo $name@$version | ||
|
||
pnpm dist-tag add $name@$version latest | ||
done |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.