fix(workflow): also add backend data host for frontend build

This commit is contained in:
MiniDigger | Martin 2023-01-05 21:08:24 +01:00
parent 31538946b2
commit b8d6a84751

View File

@ -45,6 +45,14 @@ jobs:
CI: true
run: (cd frontend && pnpm install --frozen-lockfile)
- name: Set environment for branch
run: |
if [[ $GITHUB_REF == 'refs/heads/master' ]]; then
echo "BACKEND_DATA_HOST=https://hangar.papermc.io" >> $GITHUB_ENV
else
echo "BACKEND_DATA_HOST=https://hangar.papermc.dev" >> $GITHUB_ENV
fi
- name: Lint frontend
env:
CI: true