Skip to content

Commit

Permalink
ci: using $GITHUB_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed Sep 12, 2023
1 parent 6e1164d commit 2e2a82f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ jobs:
cat $HOME/.bash_profile
cat $HOME/.bashrc
mkdir -p $HOME/.config/bin
echo -e '#!/bin/bash\npnpm "$@"' > $HOME/.config/bin/npm && chmod +x npm
echo 'export PATH=$HOME/.config/bin:$PATH' >> $HOME/.bashrc
source $HOME/.bashrc
mkdir -p $GITHUB_WORKSPACE/kdnj/bin
echo -e '#!/bin/bash\npnpm "$@"' > $GITHUB_WORKSPACE/kdnj/bin/npm && \
chmod +x $GITHUB_WORKSPACE/kdnj/bin/npm
echo "$GITHUB_WORKSPACE/kdnj/bin" >> $GITHUB_PATH
type pnpm
type npm

0 comments on commit 2e2a82f

Please sign in to comment.