Skip to content

Commit f7da5aa

Browse files
chore: Synced local '.github/' with remote 'sync-files/js/.github/'
1 parent c5cdf54 commit f7da5aa

File tree

5 files changed

+84
-44
lines changed

5 files changed

+84
-44
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
steps:
5555
- name: Checkout repository
56-
uses: actions/checkout@v3
56+
uses: actions/checkout@v2
5757

5858
# Initializes the CodeQL tools for scanning.
5959
- name: Initialize CodeQL

.github/workflows/docs.yml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,24 @@
1515
name: Docs
1616
on: [push, pull_request]
1717
jobs:
18-
docs:
18+
test:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v4
23-
24-
- name: Setup Node
25-
uses: actions/setup-node@v3
21+
- uses: actions/checkout@v2
22+
- uses: actions/cache@v2
2623
with:
27-
node-version: 20
28-
cache: npm
29-
30-
- name: Install Dependencies
31-
run: npm ci
32-
33-
- name: Build Documentation
34-
run: npm run docs
35-
36-
- if: github.ref == 'refs/heads/main'
37-
name: Publish to GitHub Pages
38-
uses: peaceiris/actions-gh-pages@v3
39-
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
28+
- run: |
29+
npm i
30+
npm run docs
31+
- uses: peaceiris/actions-gh-pages@v3
32+
if: github.ref == 'refs/heads/main'
4033
with:
4134
github_token: ${{ secrets.GITHUB_TOKEN }}
4235
publish_dir: ./docs
43-
user_name: "googlemaps-bot"
44-
user_email: "[email protected]"
36+
user_name: 'googlemaps-bot'
37+
user_email: '[email protected]'
4538
commit_message: ${{ github.event.head_commit.message }}

.github/workflows/package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
package:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v2
2424
- run: npm i
2525
- uses: jpoehnelt/verify-npm-files-action@main
2626
with:

.github/workflows/release.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Release
16+
on:
17+
push:
18+
branches:
19+
- main
20+
concurrency: release
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/setup-node@v2
26+
with:
27+
node-version: '14'
28+
- name: Checkout
29+
uses: actions/checkout@v3
30+
with:
31+
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
32+
- uses: actions/cache@v2
33+
with:
34+
path: ~/.npm
35+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
36+
restore-keys: |
37+
${{ runner.os }}-node-
38+
- name: Test
39+
run: |
40+
npm i
41+
npm run lint
42+
npm test
43+
- name: Release
44+
uses: cycjimmy/semantic-release-action@v3
45+
with:
46+
extra_plugins: |
47+
@semantic-release/commit-analyzer
48+
semantic-release-interval
49+
@semantic-release/release-notes-generator
50+
@semantic-release/git
51+
@semantic-release/github
52+
@semantic-release/npm
53+
@googlemaps/semantic-release-config
54+
semantic-release-npm-deprecate
55+
env:
56+
GH_TOKEN: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
57+
NPM_TOKEN: ${{ secrets.NPM_WOMBAT_TOKEN }}

.github/workflows/test.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,15 @@ on: [push, pull_request, workflow_call]
1717
jobs:
1818
test:
1919
runs-on: ubuntu-latest
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v4
23-
24-
- name: Setup Node
25-
uses: actions/setup-node@v3
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/cache@v2
2623
with:
27-
node-version: 20
28-
cache: npm
29-
30-
- name: Install Dependencies
31-
run:
32-
npm ci
33-
34-
- name: Run eslint
35-
run: npm run lint
36-
37-
- name: Run Tests
38-
run: npm test
39-
40-
- name: Collect Coverage Data
41-
uses: codecov/codecov-action@v1
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
28+
- run: npm i
29+
- run: npm run lint
30+
- run: npm test
31+
- uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)