cloudflare/cloudflare-typescript

Public

mirrored fromhttps://github.com/cloudflare/cloudflare-typescriptAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v6.0.0-beta.1

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

bin/check-release-environment

22lines · modecode

1#!/usr/bin/env bash
2
3errors=()
4
5if [ -z "${NPM_TOKEN}" ]; then
6 errors+=("The NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets")
7fi
8
9lenErrors=${#errors[@]}
10
11if [[ lenErrors -gt 0 ]]; then
12 echo -e "Found the following errors in the release environment:\n"
13
14 for error in "${errors[@]}"; do
15 echo -e "- $error\n"
16 done
17
18 exit 1
19fi
20
21echo "The environment is ready to push releases!"
22
23