mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
Use yarn pnp as module linker (#2252)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
20a48b38d7
commit
6ba957585a
17 changed files with 271 additions and 7285 deletions
9
netlify/deploy-main.sh
Normal file → Executable file
9
netlify/deploy-main.sh
Normal file → Executable 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue