Skip to content

Commit 23e9c44

Browse files
authored
feat: add scripts from metamask template (#17)
- add scripts that needed for publish
1 parent c60cb40 commit 23e9c44

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

scripts/get.sh

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

scripts/prepack.sh

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

0 commit comments

Comments
 (0)