From 210548517be37d08f48b8a382efb641aa32ddd98 Mon Sep 17 00:00:00 2001 From: castastrophe Date: Tue, 26 Aug 2025 08:50:31 -0400 Subject: [PATCH] chore: github actions minor ci updates --- .github/GUIDE.md | 4 ++-- .github/renovate.json | 6 +++++- .github/workflows/build.yml | 2 +- .github/workflows/compare-results.yml | 12 ++++++------ .github/workflows/development.yml | 6 ++---- .github/workflows/lint.yml | 5 +++-- .github/workflows/production.yml | 8 ++++---- .github/workflows/publish-site.yml | 2 +- .github/workflows/release-snapshot.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/vrt.yml | 2 +- .gitignore | 3 ++- 12 files changed, 29 insertions(+), 25 deletions(-) diff --git a/.github/GUIDE.md b/.github/GUIDE.md index 31727566ff4..3baaea8362b 100644 --- a/.github/GUIDE.md +++ b/.github/GUIDE.md @@ -66,7 +66,7 @@ Runs stylelint or eslint if any relevant assets have been updated in this PR. ##### 📝 Publish documentation site -After the build and visual regression tests have passed, this will build the documentation site and publish it to Netlify. +After the build and visual regression tests have passed, this will build the documentation site and publish it to Azure. ##### 📸 Visual regression testing @@ -92,7 +92,7 @@ Builds the `main` branch and outputs the compiled assets as artifacts. ##### 📝 2. Publish site -Publish the documentation site to Netlify. +Publish the documentation site to Azure. ##### 📸 3. Visual regression testing diff --git a/.github/renovate.json b/.github/renovate.json index bfc46d7efc8..083fd4d82ba 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -38,5 +38,9 @@ } ], "rebaseWhen": "behind-base-branch", - "reviewers": ["team:spectrum-css-maintainers"] + "reviewers": ["team:spectrum-css-maintainers"], + "lockFileMaintenance": { + "enabled": true, + "extends": ["schedule:monthly"] + } } diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b37e2f87880..0891debf247 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -83,7 +83,7 @@ jobs: echo "key=${{ matrix.system }}-node${{ matrix.node-version }}-compiled-assets-${BRANCH}" >> "$GITHUB_OUTPUT" - name: Check out code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: ref: ${{ inputs.ref || github.head_ref }} fetch-depth: 0 diff --git a/.github/workflows/compare-results.yml b/.github/workflows/compare-results.yml index 5bc9317237d..9111025cacd 100644 --- a/.github/workflows/compare-results.yml +++ b/.github/workflows/compare-results.yml @@ -44,7 +44,7 @@ jobs: has-changed: ${{ steps.compare.outputs.has-changed }} total-size: ${{ steps.compare.outputs.total-size }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 @@ -86,14 +86,14 @@ jobs: echo "base-path=${BRANCH//\//_}" >> "$GITHUB_OUTPUT" - name: Download build artifacts for head - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v5 with: name: ubuntu-latest-node20-compiled-assets-${{ steps.derive-key.outputs.head-path }} path: ${{ github.workspace }}/${{ steps.derive-key.outputs.head-path }} merge-multiple: true - name: Download build artifacts for base - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v5 with: name: ubuntu-latest-node20-compiled-assets-${{ steps.derive-key.outputs.base-path }} path: ${{ github.workspace }}/${{ steps.derive-key.outputs.base-path }} @@ -158,7 +158,7 @@ jobs: echo "key=ubuntu-latest-node20-compiled-assets-${BRANCH}" >> "$GITHUB_OUTPUT" - name: Check if build artifacts already exist - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v5 id: artifact-found continue-on-error: true with: @@ -170,7 +170,7 @@ jobs: run: exit 0 - name: Check out code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 ref: ${{ matrix.branch }} @@ -206,7 +206,7 @@ jobs: - name: Check for built assets continue-on-error: true id: download - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v5 with: path: | ${{ github.workspace }}/components/*/dist/** diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index 9782d03b325..9741e818fc5 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -5,7 +5,7 @@ name: # - Build the base branch and the PR branch # - Compare the compiled output of the two branches # - Run visual regression tests on the PR branch - # - Publish the PR branch to Netlify for review + # - Publish the PR branch to Azure for review # ------------------------------------------------------------- on: @@ -114,9 +114,7 @@ jobs: - '*.md' - .storybook/*.md - .storybook/*/*.md - - .storybook/*/*.mdx - components/*/*.md - - components/*/stories/*.mdx - plugins/*/*.md - tokens/*.md - tools/*/*.md @@ -152,7 +150,7 @@ jobs: if: ${{ needs.changed_files.outputs.plugins_added_files != '' || needs.changed_files.outputs.plugins_modified_files != '' }} steps: - name: Check out code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Use Node LTS version uses: actions/setup-node@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 89a4316ae4b..c1a66dd6c42 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -58,7 +58,7 @@ jobs: steps: # install but don't build - we're linting pre-compiled assets - name: Check out code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 @@ -116,10 +116,11 @@ jobs: reporter: github-pr-review filter_mode: diff_context # eslint_flags: "components/*/stories/*.js" - eslint_flags: "${{ inputs.eslint_added_files }} ${{ inputs.eslint_modified_files }}" + eslint_flags: "--config ${{ github.workspace }}/.eslintrc ${{ inputs.eslint_added_files }} ${{ inputs.eslint_modified_files }}" - name: Run markdownlint on documentation uses: reviewdog/action-markdownlint@v0.26.2 + if: ${{ inputs.mdlint_added_files != '' || inputs.mdlint_modified_files != '' }} with: reporter: github-pr-review filter_mode: diff_context diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index e77c66e48d0..40599d4c270 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -4,7 +4,7 @@ name: Build and verify production # - Build the main branch # - Report on the compiled output # - Run visual regression tests - # - Publish the PR branch to Netlify + # - Publish the PR branch to Azure # ------------------------------------------------------------- on: @@ -58,8 +58,8 @@ jobs: secrets: inherit # ------------------------------------------------------------- - # PUBLISH TO NETLIFY --- # - # Publish to netlify by leveraging the previous build and then building the site as well + # PUBLISH TO AZURE --- # + # Publish to azure by leveraging the previous build and then building the site as well # ------------------------------------------------------------- publish_site: name: Publish @@ -72,7 +72,7 @@ jobs: timeout-minutes: 5 steps: - name: Check out code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Convert new TODO items to issues uses: alstr/todo-to-issue-action@v5 diff --git a/.github/workflows/publish-site.yml b/.github/workflows/publish-site.yml index 8c8c55e9a10..d802d66273a 100644 --- a/.github/workflows/publish-site.yml +++ b/.github/workflows/publish-site.yml @@ -42,7 +42,7 @@ jobs: steps: ## --- SETUP --- ## - name: Check out code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index 81a63fad58d..394bd88b3ac 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -20,7 +20,7 @@ jobs: env: BRANCH: ${{ github.ref_name }} run: echo "fragment=${BRANCH##*snapshot-}" >> $GITHUB_OUTPUT - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 - name: Get last author info diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1cd7d788dcb..ead6e01292f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup Node.js uses: actions/setup-node@v4 diff --git a/.github/workflows/vrt.yml b/.github/workflows/vrt.yml index fd05840dd45..8170427fe07 100644 --- a/.github/workflows/vrt.yml +++ b/.github/workflows/vrt.yml @@ -44,7 +44,7 @@ jobs: storybook-url: ${{ steps.chromatic.outputs.storybookUrl != 'undefined' && steps.chromatic.outputs.storybookUrl || '' }} steps: - name: Check out code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 ref: ${{ inputs.ref || github.ref }} diff --git a/.gitignore b/.gitignore index 28c3ba85761..7ca9b08e912 100644 --- a/.gitignore +++ b/.gitignore @@ -2,11 +2,12 @@ **/dist/* !components/*/dist/metadata.json !tokens/dist/json/* +!ui-icons/dist # Not committing the map assets, these are dev-only *.map -# Recommended update re:https://docs.netlify.com/integrations/frameworks/eleventy/ +# Not committing node_modules **/node_modules/** temp