Fix fetch for ci but not publish (#2745)

* grep in ci only but not publish
This commit is contained in:
inferrinizzard
2025-05-17 11:07:15 -07:00
committed by GitHub
parent 3b96de894d
commit 63b028f0dd
2 changed files with 11 additions and 4 deletions

View File

@ -14,3 +14,4 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
PUBLISH: true

View File

@ -1,8 +1,14 @@
#!/usr/bin/env bash
if [[ $CI ]]
then
grep -rl '$fetch' src | xargs sed -i '' -e 's/$fetch/$fetch.ci/g'
if [[ $PUBLISH == true ]]; then
echo 'HAS PUBLISH, exit'
exit 0
fi
exit 0
if [[ $CI ]]; then
if [[ "$OSTYPE" == "darwin"* ]]; then
grep -rl '$fetch' src | xargs sed -i '' -e 's/$fetch/$fetch.ci/g'
else
grep -rl '$fetch' src | xargs sed -i -e 's/$fetch/$fetch.ci/g'
fi
fi