Use yarn pnp as module linker (#2252)

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-07-30 23:32:19 +02:00 committed by GitHub
parent 20a48b38d7
commit 6ba957585a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 271 additions and 7285 deletions

9
netlify/deploy-main.sh Normal file → Executable file
View file

@ -1,14 +1,17 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
#
# SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
#
# SPDX-License-Identifier: AGPL-3.0-only
#
json=$(yarn netlify deploy --build --prod --json --message "${1:0:8}: $2")
cd "$(dirname "$0")"
json=$(./netlify-cli.sh deploy --build --prod --json --message "${1:0:8}: $2")
if [ $? -ne 0 ]; then
echo "Error while executing netlify! Will try again without json..."
yarn netlify deploy --build --prod --message "${1:0:8}: $2"
./netlify-cli.sh deploy --build --prod --message "${1:0:8}: $2"
exit 1
fi