Skip to content

Commit

Permalink
fixup! feat: automate homebrew-tap
Browse files Browse the repository at this point in the history
  • Loading branch information
omidasadpour committed Jan 15, 2024
1 parent 1086513 commit f122e33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/npm-package-updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
PACKAGE_NAME="@sunodo/cli"
PACKAGE_VERSION=$(npm show $PACKAGE_NAME version)
PACKAGE_URL=$(npm show $PACKAGE_NAME dist.tarball)
PACKAGE_SHA256=$(npm show $PACKAGE_NAME dist.shasum | awk '{print $1}')
npm pack @sunodo/cli@$PACKAGE_VERSION
PACKAGE_SHA256=$(sha256sum sunodo-cli-$PACKAGE_VERSION.tgz | awk '{print $1}')
if [ -z "$PACKAGE_VERSION" ] || [ -z "$PACKAGE_URL" ] || [ -z "$PACKAGE_SHA256" ]; then
echo "Failed to retrieve package information. Exiting..."
Expand Down Expand Up @@ -64,4 +65,4 @@ jobs:
suite:
name: suite
needs: update-package
uses: ./.github/workflows/ci.yml
uses: ./.github/workflows/ci.yml

0 comments on commit f122e33

Please sign in to comment.