-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) Support
rush
in artifacts-helper (#52)
* (feat) Support `rush` in artifacts-helper * Update devcontainer-feature.json Bump version --------- Co-authored-by: Mark Phippard <[email protected]>
- Loading branch information
1 parent
7079cde
commit 06b81b7
Showing
6 changed files
with
69 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
if [ -f "${HOME}/ado-auth-helper" ]; then | ||
export ARTIFACTS_ACCESSTOKEN=$(${HOME}/ado-auth-helper get-access-token) | ||
fi | ||
|
||
# Find the rush-pnpm executable so we do not run the bash alias again | ||
RUSH_PNPM_EXE=$(which rush-pnpm) | ||
|
||
${RUSH_PNPM_EXE} "$@" | ||
EXIT_CODE=$? | ||
unset RUSH_PNPM_EXE | ||
|
||
if [ -f "${HOME}/ado-auth-helper" ]; then | ||
unset ARTIFACTS_ACCESSTOKEN | ||
fi | ||
|
||
exit $EXIT_CODE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
if [ -f "${HOME}/ado-auth-helper" ]; then | ||
export ARTIFACTS_ACCESSTOKEN=$(${HOME}/ado-auth-helper get-access-token) | ||
fi | ||
|
||
# Find the rush executable so we do not run the bash alias again | ||
RUSH_EXE=$(which rush) | ||
|
||
${RUSH_EXE} "$@" | ||
EXIT_CODE=$? | ||
unset RUSH_EXE | ||
|
||
if [ -f "${HOME}/ado-auth-helper" ]; then | ||
unset ARTIFACTS_ACCESSTOKEN | ||
fi | ||
|
||
exit $EXIT_CODE |