File tree Expand file tree Collapse file tree
handwritten/nodejs-logging-winston Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Copyright 2018 Google LLC
4+ #
5+ # Licensed under the Apache License, Version 2.0 (the "License");
6+ # you may not use this file except in compliance with the License.
7+ # You may obtain a copy of the License at
8+ #
9+ # https://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing, software
12+ # distributed under the License is distributed on an "AS IS" BASIS,
13+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ # See the License for the specific language governing permissions and
15+ # limitations under the License.
16+
17+ set -eo pipefail
18+
19+ export NPM_CONFIG_PREFIX=/home/node/.npm-global
20+
21+ # Start the releasetool reporter
22+ python3 -m pip install gcp-releasetool
23+ python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script
24+
25+ cd $( dirname $0 ) /..
26+
27+ NPM_TOKEN=$( cat $KOKORO_KEYSTORE_DIR /73713_google_cloud_npm_token)
28+ echo " //registry.npmjs.org/:_authToken=${NPM_TOKEN} " > ~ /.npmrc
29+
30+ npm install
31+ npm publish --access=public
Original file line number Diff line number Diff line change 1+ # Get npm token from Keystore
2+ before_action {
3+ fetch_keystore {
4+ keystore_resource {
5+ keystore_config_id: 73713
6+ keyname: " google_cloud_npm_token"
7+ backend_type: FASTCONFIGPUSH
8+ }
9+ }
10+ }
11+
12+
13+ # Download trampoline resources.
14+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/trampoline"
15+
16+ # Use the trampoline script to run in docker.
17+ build_file: " nodejs-scheduler/.kokoro/trampoline.sh"
18+
19+ # Configure the docker image for kokoro-trampoline.
20+ env_vars: {
21+ key: " TRAMPOLINE_IMAGE"
22+ value: " gcr.io/cloud-devrel-kokoro-resources/node:8-user"
23+ }
24+
25+ env_vars: {
26+ key: " TRAMPOLINE_BUILD_FILE"
27+ value: " github/nodejs-scheduler/.kokoro/publish.sh"
28+ }
You can’t perform that action at this time.
0 commit comments