Skip to content

Commit

Permalink
chore(dev): add CI=false
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-kirill committed Aug 28, 2024
1 parent 7f3b480 commit 3f261d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ jobs:
run: npm i -g @redocly/cli@latest
- name: Install Dependencies
run: npm install --prefix client
env:
CI: false
- name: Deploy at home lab
run: echo "$(pwd)" && ./tools/scripts/deploy.sh dev
env:
Expand Down
2 changes: 1 addition & 1 deletion client/src/shared/cookie/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function getCookie(name: string) {
const value = "; " + document.cookie;
const parts = value.split("; " + name + "=");

if (parts.length == 2) {
if (parts.length === 2) {
return parts.pop()?.split(";").shift();
}
}
Expand Down
2 changes: 2 additions & 0 deletions tools/scripts/client/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ if [ -z "$1" ]; then
echo -e "\033[0;33mNo stage provided. 'local' stage will be used.\033[0m"
fi

echo "kek"
export SERVER_API_URL="$(grep -w SERVER_API_URL "./tools/docker/env/$stage.env" | cut -d '=' -f2-)" # extract env variable by key
echo "SERVER_API_URL: '${SERVER_API_URL}'"
(cd "$rootDir" && npm --prefix "$rootDir/client" run build)

echo -e "\033[0;32mClient has been built.\033[0m"

0 comments on commit 3f261d2

Please sign in to comment.