]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: remove old scripts
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 17 Aug 2021 16:47:34 +0000 (18:47 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 17 Aug 2021 16:47:34 +0000 (18:47 +0200)
packages/pinia/package.json
scripts/release.sh [deleted file]

index 4c089905bf281a33138c36c7ce48b676c23db982..5cc89af58b86bed7b5e92dc2706b218ea4979ef7 100644 (file)
@@ -27,7 +27,6 @@
     "docs:build": "vitepress build docs",
     "build": "rimraf dist && rollup -c ../../rollup.config.js --environment TARGET:pinia",
     "build:dts": "api-extractor run --local --verbose",
-    "release": "bash scripts/release.sh",
     "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l pinia -r 1",
     "test:dts": "tsc -p ./test-dts/tsconfig.json",
     "dev": "yarn run test:unit --watchAll",
diff --git a/scripts/release.sh b/scripts/release.sh
deleted file mode 100644 (file)
index 8c8394c..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-set -e
-echo "Current version:" $(grep version package.json | sed -E 's/^.*"([0-9]\.[^"]+)".*$/\1/')
-echo "Enter rc version e.g., 2 will generate 2.0.0-rc.2: "
-read RC
-
-VERSION="2.0.0-rc.$RC"
-
-read -p "Releasing v$VERSION - are you sure? (y/n)" -n 1 -r
-echo    # (optional) move to a new line
-if [[ $REPLY =~ ^[Yy]$ ]]
-then
-  echo "Releasing v$VERSION ..."
-
-  # clear existing ts cache
-  rm -rf node_modules/.rts2_cache
-
-  # generate the version so that the changelog can be generated too
-  yarn version --no-git-tag-version --no-commit-hooks --new-version $VERSION
-
-  yarn run build
-  yarn run build:dts
-  yarn run test:dts
-
-  # changelog
-  yarn run changelog
-  yarn prettier --write CHANGELOG.md
-  echo "Please check the git history and the changelog and press enter"
-  read OKAY
-
-  # commit and tag
-  git add CHANGELOG.md package.json
-  git commit -m "release: v$VERSION"
-  git tag "v$VERSION"
-
-  # commit
-  yarn publish --tag next --new-version "$VERSION" --no-commit-hooks --no-git-tag-version
-
-  # publish
-  git push origin refs/tags/v$VERSION
-  git push
-fi