Skip to content

Commit

Permalink
chore: update workflows to use newer versions (#1046)
Browse files Browse the repository at this point in the history
Co-authored-by: Angela Yu <5506675+wangela@users.noreply.github.com>
  • Loading branch information
usefulthink and wangela authored Dec 11, 2023
1 parent eedf7b0 commit 52b256f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 36 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ on:
- master
jobs:
release:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node_version: 18
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci
- run: npm run docs
- run: touch docs/.nojekyll
Expand Down
60 changes: 30 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,34 @@ on:
concurrency: release
jobs:
release:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm ci
- run: npm run test:all
env:
GOOGLE_MAPS_API_KEY: ${{ secrets.SYNCED_GOOGLE_MAPS_API_KEY_SERVICES }}
- name: Release
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 19
extra_plugins: |
@semantic-release/commit-analyzer
semantic-release-interval
@semantic-release/release-notes-generator
@semantic-release/git
@semantic-release/github
@semantic-release/npm
@googlemaps/semantic-release-config
env:
GH_TOKEN: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
NPM_TOKEN: ${{ secrets.NPM_WOMBAT_TOKEN }}
GIT_AUTHOR_NAME: googlemaps-bot
GIT_AUTHOR_EMAIL: googlemaps-bot@users.noreply.github.com
GIT_COMMITTER_NAME: googlemaps-bot
GIT_COMMITTER_EMAIL: googlemaps-bot@users.noreply.github.com
- uses: actions/checkout@v2
with:
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm ci
- run: npm run test:all
env:
GOOGLE_MAPS_API_KEY: ${{ secrets.SYNCED_GOOGLE_MAPS_API_KEY_SERVICES }}
- name: Release
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 19
extra_plugins: |
@semantic-release/commit-analyzer@^9
semantic-release-interval
@semantic-release/release-notes-generator@^10
@semantic-release/git
@semantic-release/github@^8
@semantic-release/npm@^9
@googlemaps/semantic-release-config
env:
GH_TOKEN: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
NPM_TOKEN: ${{ secrets.NPM_WOMBAT_TOKEN }}
GIT_AUTHOR_NAME: googlemaps-bot
GIT_AUTHOR_EMAIL: googlemaps-bot@users.noreply.github.com
GIT_COMMITTER_NAME: googlemaps-bot
GIT_COMMITTER_EMAIL: googlemaps-bot@users.noreply.github.com
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm ci
- run: npm test
- uses: codecov/codecov-action@v1
- run: npm run test:all
Expand Down

0 comments on commit 52b256f

Please sign in to comment.