From b8e6bda525e6cdb39e670b283b20a2b43c1328c5 Mon Sep 17 00:00:00 2001 From: francisco souza <108725+fsouza@users.noreply.github.com> Date: Sat, 18 Jan 2025 00:18:16 -0500 Subject: [PATCH] Stop updating the brew tap homebrew-core has a formula for prettierd, we don't need the custom tap anymore. I'm going to archive that repo. --- .github/workflows/publish.yaml | 41 ---------------------------------- README.md | 2 +- 2 files changed, 1 insertion(+), 42 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 664dd902..8752e5c0 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -21,44 +21,3 @@ jobs: - run: yarn publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - update-brew-formula: - name: update-brew-formula - runs-on: macos-latest - needs: - - release - steps: - - uses: actions/checkout@v4.2.2 - with: - ref: main - repository: fsouza/homebrew-prettierd - token: ${{ secrets.GH_TOKEN_BREW_TAP }} - - - run: brew install sd - - - name: set git config - run: | - git config user.name fsouzabot - git config user.email 'fsouzabot@users.noreply.github.com' - - - name: update formula file - id: update-formula-file - run: | - tarball_url=$(npm view @fsouza/prettierd dist.tarball) - checksum=$(curl -sL "${tarball_url}" | shasum -a 256 - | awk '{print $1}') - sd 'url ".+"' 'url "'${tarball_url}'"' Formula/prettierd.rb - sd 'sha256 ".+"' 'sha256 "'${checksum}'"' Formula/prettierd.rb - version=$(echo "${tarball_url}" | sd '^.+/-/prettierd-(.+)\.tgz$' '$1') - echo "version=${version}" >> "${GITHUB_OUTPUT}" - - - name: test formula - run: | - brew install --formulae --include-test ./Formula/prettierd.rb - brew test ./Formula/prettierd.rb - - - name: commit and push - run: | - git commit -m "prettierd v${VERSION}" Formula/prettierd.rb - git push origin main - env: - VERSION: ${{ steps.update-formula-file.outputs.version }} diff --git a/README.md b/README.md index 56f9e720..14e3a3b1 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ $ npm install -g @fsouza/prettierd Alternatively, users may also use homebrew: ``` -$ brew install fsouza/prettierd/prettierd +$ brew install prettierd ``` ## Using in the command line with node.js