From d232208f55b20a4668463f180639c9ba0a2fb43b Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 17 Aug 2021 18:47:34 +0200 Subject: [PATCH] chore: remove old scripts --- packages/pinia/package.json | 1 - scripts/release.sh | 41 ------------------------------------- 2 files changed, 42 deletions(-) delete mode 100644 scripts/release.sh diff --git a/packages/pinia/package.json b/packages/pinia/package.json index 4c089905..5cc89af5 100644 --- a/packages/pinia/package.json +++ b/packages/pinia/package.json @@ -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 index 8c8394c9..00000000 --- a/scripts/release.sh +++ /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 -- 2.47.3