Skip to content

Commit

Permalink
fix: using npx instead of npm bin (twilio#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansla committed Feb 23, 2023
1 parent 7b45685 commit 235b97b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/debian-draft-executable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
echo "::set-output name=TAG_NAME::$(git describe --tags $(git rev-list --tags --max-count=1))"
- run: |
make install
sudo $(npm bin)/oclif pack:deb
sudo npx oclif pack:deb
cd dist/deb
sudo mv ${{ github.event.inputs.formula }}_$(awk -F- '{print $1}' <<< ${{ steps.get-tag.outputs.TAG_NAME }})-1_amd64.deb ${{ github.event.inputs.formula }}_${{ steps.get-tag.outputs.TAG_NAME }}-1_amd64.deb
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/debian-executable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
- run: |
make install
sudo chown -R 1001:121 "/root/.npm"
sudo $(npm bin)/oclif pack:deb
sudo npx oclif pack:deb
- name: Upload binaries to release - amd64
run: node .github/scripts/update-platform-executables.js
env:
Expand All @@ -32,7 +32,7 @@ jobs:
ASSET_NAME: ${{ github.event.inputs.formula }}-${{ steps.get-tag.outputs.TAG_NAME }}-amd64.deb
TAG_NAME: ${{ steps.get-tag.outputs.TAG_NAME }}
REPO_NAME: ${{ github.repository }}

- name: Upload binaries to release - armel
run: node .github/scripts/update-platform-executables.js
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
make install
- name: Semantic Release runs for draft release
id: semantic-release-draft
run: DEBUG=semantic-release:* $(npm bin)/semantic-release -t \${version}
run: DEBUG=semantic-release:* npx semantic-release -t \${version}
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
make install
- name: Semantic Release runs
id: semantic-release
run: DEBUG=semantic-release:* $(npm bin)/semantic-release -t \${version}
run: DEBUG=semantic-release:* npx semantic-release -t \${version}
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 235b97b

Please sign in to comment.