mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 17:55:17 -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
|
||||
|
||||
|
|
|
@ -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 --context deploy-preview --alias "$1" --json --message "[#$1] $2")
|
||||
cd "$(dirname "$0")"
|
||||
json=$(./netlify-cli.sh deploy --build --context deploy-preview --alias "$1" --json --message "[#$1] $2")
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error while executing netlify! Will try again without json..."
|
||||
yarn netlify deploy --build --context deploy-preview --alias "$1" --message "[#$1] $2"
|
||||
./netlify-cli.sh deploy --build --context deploy-preview --alias "$1" --message "[#$1] $2"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
10
netlify/netlify-cli.sh
Executable file
10
netlify/netlify-cli.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
#
|
||||
|
||||
NETLIFY_VERSION=10.13.0
|
||||
exec npx --yes netlify-cli@${NETLIFY_VERSION}
|
Loading…
Add table
Add a link
Reference in a new issue