xref: /aosp_15_r20/external/google-auth-library-java/.kokoro/continuous/propose_release.sh (revision af546375c95127f07cb26dd492629ccb2e8b1be1)
1*af546375SCole Faust#!/bin/bash
2*af546375SCole Faust
3*af546375SCole Faust# Copyright 2019 Google LLC
4*af546375SCole Faust#
5*af546375SCole Faust# Licensed under the Apache License, Version 2.0 (the "License");
6*af546375SCole Faust# you may not use this file except in compliance with the License.
7*af546375SCole Faust# You may obtain a copy of the License at
8*af546375SCole Faust#
9*af546375SCole Faust#     https://www.apache.org/licenses/LICENSE-2.0
10*af546375SCole Faust#
11*af546375SCole Faust# Unless required by applicable law or agreed to in writing, software
12*af546375SCole Faust# distributed under the License is distributed on an "AS IS" BASIS,
13*af546375SCole Faust# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*af546375SCole Faust# See the License for the specific language governing permissions and
15*af546375SCole Faust# limitations under the License.
16*af546375SCole Faust
17*af546375SCole Faustset -eo pipefail
18*af546375SCole Faust
19*af546375SCole Faustexport NPM_CONFIG_PREFIX=/home/node/.npm-global
20*af546375SCole Faust
21*af546375SCole Faustif [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then
22*af546375SCole Faust  # Groom the release PR as new commits are merged.
23*af546375SCole Faust  npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \
24*af546375SCole Faust    --repo-url=googleapis/google-auth-library-java \
25*af546375SCole Faust    --package-name="google-auth-library-java" \
26*af546375SCole Faust    --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \
27*af546375SCole Faust    --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \
28*af546375SCole Faust    --release-type=java-auth-yoshi
29*af546375SCole Faustfi
30