-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: modfying publish action to use npm cli to include provenance i…
…n npm publish
- Loading branch information
1 parent
a3ec167
commit 7396b94
Showing
4 changed files
with
9 additions
and
3 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
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/usr/bin/env bash | ||
yarn workspace $WORKSPACE pack | ||
if $LD_RELEASE_IS_DRYRUN ; then | ||
# Dry run just pack the workspace. | ||
echo "Doing a dry run of publishing." | ||
yarn workspace $WORKSPACE pack | ||
else | ||
if $LD_RELEASE_IS_PRERELEASE ; then | ||
echo "Publishing with prerelease tag." | ||
yarn workspace $WORKSPACE npm publish --tag prerelease || { echo "npm publish failed" >&2; exit 1; } | ||
npm publish --tag prerelease --provenance --access public "./$WORKSPACE_PATH/package.tgz" || { echo "npm publish failed" >&2; exit 1; } | ||
else | ||
yarn workspace $WORKSPACE npm publish || { echo "npm publish failed" >&2; exit 1; } | ||
npm publish --provenance --access public "./$WORKSPACE_PATH/package.tgz" || { echo "npm publish failed" >&2; exit 1; } | ||
fi | ||
fi |