We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a94a11f commit 748b81aCopy full SHA for 748b81a
scripts/publish-prerelease.sh
@@ -2,27 +2,6 @@
2
3
set -e
4
5
-# Function to extract GITHUB_TOKEN from .env file
6
-extract_github_token() {
7
- if [ -f .env ]; then
8
- token=$(grep -E '^GITHUB_TOKEN=' .env | sed 's/^GITHUB_TOKEN=//' | sed 's/^"//' | sed 's/"$//')
9
- if [ ! -z "$token" ]; then
10
- export GITHUB_TOKEN="$token"
11
- else
12
- echo "GITHUB_TOKEN not found in .env file."
13
- return 1
14
- fi
15
16
17
18
19
-}
20
-
21
-# Check if GITHUB_TOKEN is already set
22
-if [[ -z "${GITHUB_TOKEN}" ]]; then
23
- extract_github_token || exit 1
24
-fi
25
26
# Use the first argument as version or 'v3-prerelease' if not available
27
version=${1:-'v4-prerelease'}
28
0 commit comments