From 52b256f5ae167b8c7065b09f390ee1ccb8c09d9e Mon Sep 17 00:00:00 2001 From: Martin Schuhfuss Date: Tue, 12 Dec 2023 00:32:30 +0100 Subject: [PATCH] chore: update workflows to use newer versions (#1046) Co-authored-by: Angela Yu <5506675+wangela@users.noreply.github.com> --- .github/workflows/docs.yml | 11 +++++-- .github/workflows/release.yml | 60 +++++++++++++++++------------------ .github/workflows/test.yml | 6 ++-- 3 files changed, 41 insertions(+), 36 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7919b08596..be3bc1b1fc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6df2104bc..45e280b8fa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 00c65a41d7..655a129d76 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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