diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 798a8c14cb..8a2f9d2de1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,3 +22,5 @@ jobs: run: ./push-package.sh env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + confirm: "y" + SKIP_TAG: "y" diff --git a/push-package.sh b/push-package.sh index 94937444a0..0b94df8ef5 100755 --- a/push-package.sh +++ b/push-package.sh @@ -8,15 +8,19 @@ version=$(cat package.json | jq -r .version) . ./pre-check.sh echo "This will tag and publish package version ${version}" -read -p "Confirm [y/N]" confirm +if [[ -z "$confirm" ]]; then + read -p "Confirm [y/N]" confirm +fi case "${confirm}" in y|Y ) echo "Tagging and pushing ${version}";; * ) echo "Aborting"; exit 0;; esac -git tag ${version} -git push upstream ${version} +if [[ -z "$SKIP_TAG" ]]; then + git tag ${version} + git push upstream ${version} +fi npm publish npm version patch -m "Update to version ${version}"