Skip to content

Update Directions and Distance Matrix API to indicate that transit di… #344

Update Directions and Distance Matrix API to indicate that transit di…

Update Directions and Distance Matrix API to indicate that transit di… #344

Workflow file for this run

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# use semantic-release to create a release
name: Release
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-20.04
env:
GOOGLE_MAPS_JS_SAMPLES_KEY: "${{ secrets.GOOGLE_MAPS_JS_SAMPLES_KEY }}"
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
ref: ${{ github.event.client_payload.pull_request.head.ref }}
- run: npm ci
- name: Update dist
run: |
npm run build
git config --global user.name 'googlemaps-bot'
git config --global user.email '[email protected]'
git add -f dist
git commit -m "chore: update dist folder [skip ci]" || true
git push origin
- run: npm ci
- run: npm run build -- --jobs 8
- run: npm test -- --jobs 8
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 19
extra_plugins: |
"@semantic-release/commit-analyzer"
"@semantic-release/release-notes-generator"
"@semantic-release/git"
"@semantic-release/github"
"@semantic-release/exec"
env:
GH_TOKEN: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
NPM_TOKEN: skip # required in verify conditions
POSTMAN_API_KEY: ${{ secrets.POSTMAN_API_KEY }}