Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit b32fe00

Browse files
Add scripts from module template (#143)
* Add scripts * Mark scripts as executable
1 parent d56bb42 commit b32fe00

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

scripts/get.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
set -x
4+
set -e
5+
set -u
6+
set -o pipefail
7+
8+
KEY="${1}"
9+
OUTPUT="${2}"
10+
11+
if [[ -z $KEY ]]; then
12+
echo "Error: KEY not specified."
13+
exit 1
14+
fi
15+
16+
if [[ -z $OUTPUT ]]; then
17+
echo "Error: OUTPUT not specified."
18+
exit 1
19+
fi
20+
21+
echo "$OUTPUT=$(jq --raw-output "$KEY" package.json)" >> "$GITHUB_OUTPUT"

scripts/prepack.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
set -x
4+
set -e
5+
set -o pipefail
6+
7+
if [[ -n $SKIP_PREPACK ]]; then
8+
echo "Notice: skipping prepack."
9+
exit 0
10+
fi
11+
12+
yarn build:clean

0 commit comments

Comments
 (0)