From 28af8fd3e254b7ef0ec9501c1e19243585ac00bb Mon Sep 17 00:00:00 2001 From: Sascha Mann Date: Sat, 1 Aug 2020 11:58:40 +0200 Subject: [PATCH] Delete scripts --- bin/build-release | 44 ------------------------------------------ bin/build-test-release | 36 ---------------------------------- 2 files changed, 80 deletions(-) delete mode 100644 bin/build-release delete mode 100644 bin/build-test-release diff --git a/bin/build-release b/bin/build-release deleted file mode 100644 index f581f2f..0000000 --- a/bin/build-release +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh - -branch_name="$(git symbolic-ref --short -q HEAD)" -version="v$(jq -r .version package.json)" -repo="$1" - -if [ -z "$repo" ]; then - echo "ERROR: must specify repository" - exit 1 -fi - -echo "=== debug info ===" -echo "branch: $branch_name" -echo "version: $version" -echo "repo: $repo" -echo "==================" -echo "" - -# Check that the version doesn't exist yet -version_exists="$(curl -s https://api.github.com/repos/"$repo"/tags -H "Accept: application/vnd.github.v3.full+json" | jq -r '.[] | select(.name == "'"$version"'") | .name')" -if [ -n "$version_exists" ]; then - echo "ERROR: version $version already exists" - exit 1 -fi - -git checkout -b releases/"$version" - -npm install -npm run build -npm test -npm run pack - -sed -i 's/dist/!dist/g' .gitignore -git add dist -git commit -a -m "Add production dependencies & build" - -# Tags -major_minor="$(sed 's/\.[^.]*$//' <<< "$version")" -major="$(sed 's/\.[^.]*$//' <<< "$major_minor")" - -git tag "$version" -git tag -f "$major_minor" -git tag -f "$major" -git tag -f "latest" diff --git a/bin/build-test-release b/bin/build-test-release deleted file mode 100644 index efd3561..0000000 --- a/bin/build-test-release +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -branch_name="$(git symbolic-ref --short -q HEAD)" -version="v$(jq -r .version package.json)" -repo="$1" - -if [ -z "$repo" ]; then - echo "ERROR: must specify repository" - exit 1 -fi - -echo "=== debug info ===" -echo "branch: $branch_name" -echo "version: $version" -echo "repo: $repo" -echo "==================" -echo "" - -# Check that the version doesn't exist yet -version_exists="$(curl -s https://api.github.com/repos/"$repo"/tags -H "Accept: application/vnd.github.v3.full+json" | jq -r '.[] | select(.name == "'"$version"'") | .name')" -if [ -n "$version_exists" ]; then - echo "ERROR: version $version already exists" - exit 1 -fi - -git checkout -B test/"$branch_name"/releases/"$version" - -npm install -npm run build -npm test -npm run pack - -# Add dist/ to git and commit it -sed -i 's/dist/!dist/g' .gitignore -git add dist -git commit -a -m "Add production dependencies & build"