Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
6 changes: 5 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@
}
],
"rebaseWhen": "behind-base-branch",
"reviewers": ["team:spectrum-css-maintainers"]
"reviewers": ["team:spectrum-css-maintainers"],
"lockFileMaintenance": {
"enabled": true,
"extends": ["schedule:monthly"]
}
}
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/compare-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down Expand Up @@ -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/**
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/development.yml
Comment thread
castastrophe marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -114,9 +114,7 @@ jobs:
- '*.md'
- .storybook/*.md
- .storybook/*/*.md
- .storybook/*/*.mdx
- components/*/*.md
- components/*/stories/*.mdx
- plugins/*/*.md
- tokens/*.md
- tools/*/*.md
Expand Down Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/publish-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
steps:
## --- SETUP --- ##
- name: Check out code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading