From f48b286a483a95301c2f4a28039764a11d523510 Mon Sep 17 00:00:00 2001 From: edlu77 Date: Wed, 14 Feb 2024 18:12:38 -0500 Subject: [PATCH] Update workflows --- .github/actions/deploy-comment/action.yml | 6 +++--- .github/actions/prepare-deploy/action.yml | 4 ++-- .github/actions/prepare-deploy/collect_artifacts.sh | 2 +- .github/actions/prepare-deploy/index.html.j2 | 2 +- .github/actions/setup-node-js/action.yml | 8 ++++---- .github/workflows/build-previews.yml | 4 ++-- .github/workflows/ci.yml | 10 +++------- .github/workflows/production-build.yml | 4 ++-- .github/workflows/staging-build.yml | 4 ++-- 9 files changed, 20 insertions(+), 24 deletions(-) diff --git a/.github/actions/deploy-comment/action.yml b/.github/actions/deploy-comment/action.yml index 193836d5..b14cc01e 100644 --- a/.github/actions/deploy-comment/action.yml +++ b/.github/actions/deploy-comment/action.yml @@ -8,7 +8,7 @@ runs: using: composite steps: - name: Find Comment - uses: peter-evans/find-comment@v2 + uses: peter-evans/find-comment@v3 id: 'fc' with: issue-number: ${{ github.event.pull_request.number }} @@ -27,11 +27,11 @@ runs: - name: Update Comment if: steps.fc.outputs.comment-id != '' - uses: peter-evans/create-or-update-comment@v2 + uses: peter-evans/create-or-update-comment@v4 with: comment-id: ${{steps.fc.outputs.comment-id}} edit-mode: replace body: | # :rocket: Preview Deploy Report Updated - ✅ Successfully deployed preview [here](${{ inputs.deploy-url }}) \ No newline at end of file + ✅ Successfully deployed preview [here](${{ inputs.deploy-url }}) diff --git a/.github/actions/prepare-deploy/action.yml b/.github/actions/prepare-deploy/action.yml index c93afada..5170dab5 100644 --- a/.github/actions/prepare-deploy/action.yml +++ b/.github/actions/prepare-deploy/action.yml @@ -36,7 +36,7 @@ runs: if: ${{ inputs.skip-node-js == 'false' }} uses: ./.github/actions/setup-node-js - name: Configure nx - uses: nrwl/nx-set-shas@v3 + uses: nrwl/nx-set-shas@v4 with: main-branch-name: ${{ inputs.main-branch-name }} @@ -72,4 +72,4 @@ runs: variables: | apps=${{ steps.collect.outputs.apps }} storybook=${{ inputs.build-storybook == 'true' && steps.collect.outputs.storybook || '' }} - compodoc=${{ inputs.build-compodoc == 'true' && steps.collect.outputs.compodoc || '' }} \ No newline at end of file + compodoc=${{ inputs.build-compodoc == 'true' && steps.collect.outputs.compodoc || '' }} diff --git a/.github/actions/prepare-deploy/collect_artifacts.sh b/.github/actions/prepare-deploy/collect_artifacts.sh index 6a670e0a..45497f4d 100644 --- a/.github/actions/prepare-deploy/collect_artifacts.sh +++ b/.github/actions/prepare-deploy/collect_artifacts.sh @@ -37,4 +37,4 @@ while (( "$#" )); do echo "${dir_name}=${sub_dirs}" >> "${GITHUB_OUTPUT}" fi shift -done \ No newline at end of file +done diff --git a/.github/actions/prepare-deploy/index.html.j2 b/.github/actions/prepare-deploy/index.html.j2 index 8d38c2b5..4129b94f 100644 --- a/.github/actions/prepare-deploy/index.html.j2 +++ b/.github/actions/prepare-deploy/index.html.j2 @@ -31,4 +31,4 @@ {{ createLinks('Storybook', storybook) }} {{ createLinks('Compodoc', compodoc) }} - \ No newline at end of file + diff --git a/.github/actions/setup-node-js/action.yml b/.github/actions/setup-node-js/action.yml index d7ba0fa4..717a67b5 100644 --- a/.github/actions/setup-node-js/action.yml +++ b/.github/actions/setup-node-js/action.yml @@ -5,13 +5,13 @@ inputs: node-version: description: Node.js version required: false - default: '16' + default: '20' runs: using: composite steps: - name: Use Node.js ${{ inputs.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} - name: Cache .npm @@ -23,11 +23,11 @@ runs: ${{ runner.os }}-node- - name: Cache node_modules id: modules_cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ./node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - name: Install dependencies shell: bash if: ${{ steps.modules_cache.outputs.cache-hit != 'true' }} - run: npm ci --ignore-scripts \ No newline at end of file + run: npm ci --ignore-scripts diff --git a/.github/workflows/build-previews.yml b/.github/workflows/build-previews.yml index 3554e5f5..87f13253 100644 --- a/.github/workflows/build-previews.yml +++ b/.github/workflows/build-previews.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -36,4 +36,4 @@ jobs: - name: Create Deploy Comment uses: ./.github/actions/deploy-comment with: - deploy-url: ${{steps.deploy.outputs.NETLIFY_URL}} \ No newline at end of file + deploy-url: ${{steps.deploy.outputs.NETLIFY_URL}} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 760fc0fe..bd32165e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,10 +7,6 @@ on: - develop pull_request: -defaults: - run: - working-directory: ./website - concurrency: group: ci-${{ github.head_ref || github.run_id }} cancel-in-progress: true @@ -18,7 +14,7 @@ concurrency: jobs: main: name: Nx Cloud - Main Job - uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.14 + uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.14.0 with: number-of-agents: 3 init-commands: | @@ -35,7 +31,7 @@ jobs: agents: name: Nx Cloud - Agents - uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.14 + uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.14.0 with: number-of-agents: 3 @@ -49,4 +45,4 @@ jobs: with: job-status: ${{ needs.main.result }} slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }} - channel: github \ No newline at end of file + channel: github diff --git a/.github/workflows/production-build.yml b/.github/workflows/production-build.yml index 40420bf5..7d4657da 100644 --- a/.github/workflows/production-build.yml +++ b/.github/workflows/production-build.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: main fetch-depth: 0 @@ -30,4 +30,4 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: deploy - commit_message: 'Staging deploy -- ${{ github.event.head_commit.message }}' \ No newline at end of file + commit_message: 'Staging deploy -- ${{ github.event.head_commit.message }}' diff --git a/.github/workflows/staging-build.yml b/.github/workflows/staging-build.yml index f7d1f30b..2ab03210 100644 --- a/.github/workflows/staging-build.yml +++ b/.github/workflows/staging-build.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: develop fetch-depth: 0 @@ -31,4 +31,4 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: deploy publish_branch: staging - commit_message: 'Staging deploy -- ${{ github.event.head_commit.message }}' \ No newline at end of file + commit_message: 'Staging deploy -- ${{ github.event.head_commit.message }}'