Skip to content

Commit

Permalink
fix: get npm name
Browse files Browse the repository at this point in the history
  • Loading branch information
iowillhoit committed Sep 15, 2023
1 parent 3c11574 commit 41c5645
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/just-nut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ jobs:
# The --jit flag ensures we get the JIT plugin version set in the sf package.json
run: |
echo "SF_DATA_DIR=${{ runner.temp }}/sf-data-dir" >> $GITHUB_ENV
sf plugins install ${{ inputs.repository }} --jit
RAW_URL=$(gh browse package.json --repo "${{ inputs.repository }}" --no-browser | sed 's/github.com/raw.githubusercontent.com/' | sed 's/tree\/main/main/')
NPM_NAME=$(curl --silent "$RAW_URL" | jq -r '.name')
sf plugins install "$NPM_NAME" --jit
- name: Run NUT (with retries)
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
with:
Expand Down

0 comments on commit 41c5645

Please sign in to comment.