Skip to content

Commit

Permalink
Merge branch 'nikkimk/a11y-docs' of github.com:adobe/spectrum-web-com…
Browse files Browse the repository at this point in the history
…ponents into nikkimk/a11y-docs-swc07
  • Loading branch information
nikkimk committed Oct 18, 2024
2 parents e5bedb8 + 2933e49 commit d63c3c4
Show file tree
Hide file tree
Showing 197 changed files with 1,271 additions and 1,421 deletions.
21 changes: 20 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ executors:
parameters:
current_golden_images_hash:
type: string
default: 3bb8a93772e35ef3bb5e156f76b7c8bd72786144
default: ef7c7c0e0b5827a2f5e95bf6aba539959453f5dc
wireit_cache_name:
type: string
default: wireit
Expand Down Expand Up @@ -219,6 +219,20 @@ jobs:
branch=$(npx slugify-cli $branch)
yarn netlify deploy --alias=$branch --cwd projects/documentation
beta-docs:
executor: node

steps:
- downstream
- run:
name: Generate Beta Docs
command: yarn docs:preview
- run: echo '/* /index.html 200' > projects/documentation/dist/_redirects
- run: |
branch=$(git symbolic-ref --short HEAD)
branch=$(npx slugify-cli $branch)
yarn netlify deploy --alias=beta --cwd projects/documentation
hcm-visual:
executor: node

Expand Down Expand Up @@ -329,6 +343,11 @@ workflows:
branches:
# Forked pull requests have CIRCLE_BRANCH set to pull/XXX
ignore: /pull\/[0-9]+/
- beta-docs:
filters:
branches:
# Beta docs are only published from main
only: main
- visual:
name: << matrix.theme >>-<< matrix.color >>-<< matrix.scale >>-<< matrix.dir >>
matrix:
Expand Down
84 changes: 84 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Beta Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Set Git identity
run: |
git config --global user.email "support+actions@github.com"
git config --global user.name "github-actions-bot"
- name: Get Lerna current version
id: get_lerna_version
run: |
CURRENT_VERSION=$(npx lerna ls --json | jq -r '.[0].version')
echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
- name: Calculate next minor version
id: calculate_next_minor_version
run: |
NEXT_MINOR_VERSION=$(npx semver "${{ steps.get_lerna_version.outputs.version }}" -i minor)
echo "next_minor_version=$NEXT_MINOR_VERSION" >> $GITHUB_OUTPUT
- name: Get latest published beta version
id: get_latest_published_beta
run: |
LATEST_BETA_VERSION=$(npm view @spectrum-web-components/button@beta version || echo "none")
echo "latest_beta_version=$LATEST_BETA_VERSION" >> $GITHUB_OUTPUT
- name: Calculate next beta version
id: calculate_next_beta_version
run: |
NEXT_MINOR_VERSION="${{ steps.calculate_next_minor_version.outputs.next_minor_version }}"
LATEST_BETA_VERSION="${{ steps.get_latest_published_beta.outputs.latest_beta_version }}"
if [ "$LATEST_BETA_VERSION" == "none" ]; then
BETA_VERSION="$NEXT_MINOR_VERSION-beta.0"
else
LATEST_BETA_BASE_VERSION=$(echo "$LATEST_BETA_VERSION" | sed 's/-beta\.[0-9]*//')
if [ "$NEXT_MINOR_VERSION" != "$LATEST_BETA_BASE_VERSION" ]; then
BETA_VERSION="$NEXT_MINOR_VERSION-beta.0"
else
CURRENT_BETA_NUMBER=$(echo "$LATEST_BETA_VERSION" | sed 's/.*-beta\.\([0-9]\+\)/\1/')
NEXT_BETA_NUMBER=$((CURRENT_BETA_NUMBER + 1))
BETA_VERSION="$NEXT_MINOR_VERSION-beta.$NEXT_BETA_NUMBER"
fi
fi
echo "beta_version=$BETA_VERSION" >> $GITHUB_OUTPUT
- name: Update package versions for beta release
run: |
npx lerna version "${{ steps.calculate_next_beta_version.outputs.beta_version }}" --no-git-tag-version --no-push --yes
- name: Configure NPM for Lerna publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish beta release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git commit -am "chore: publish beta version ${{ steps.calculate_next_beta_version.outputs.beta_version }}"
npx lerna publish from-package --dist-tag beta --no-git-tag-version --no-push --yes
4 changes: 3 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"length-zero-no-unit": [true, { "ignore": "custom-properties" }],
"selector-type-no-unknown": [true, { "ignore": ["custom-elements"] }],
"selector-pseudo-element-colon-notation": ["single", {}],
"custom-property-pattern": "^_?([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
"custom-property-pattern": "^_?([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
"no-duplicate-selectors": null,
"no-descending-specificity": null
},
"overrides": [
{
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)

### Bug Fixes

- **number-field:** show decimal on iPad minimized keyboard ([#4784](https://github.com/adobe/spectrum-web-components/issues/4784)) ([deb7a1c](https://github.com/adobe/spectrum-web-components/commit/deb7a1cce452f120a9c2c96d73b0d03132c02565))
- **tabs:** scroll exceeding tabs limit ([#4722](https://github.com/adobe/spectrum-web-components/issues/4722)) ([fc9a448](https://github.com/adobe/spectrum-web-components/commit/fc9a4489c13e2471226e0f79a1197a61ef8242a7))

### Features

- add `static-color` to replace `static` ([#4808](https://github.com/adobe/spectrum-web-components/issues/4808)) ([43cf086](https://github.com/adobe/spectrum-web-components/commit/43cf0865d902346568c755650f53410c7788f2a1))
- **button:** add noWrap property ([#4779](https://github.com/adobe/spectrum-web-components/issues/4779)) ([6760ec2](https://github.com/adobe/spectrum-web-components/commit/6760ec283ad190f45f9639e636953e90ea562385))

## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.48.1",
"version": "0.49.0",
"granularPathspec": false,
"npmClient": "yarn",
"command": {
Expand Down
4 changes: 4 additions & 0 deletions linters/eslint/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)

**Note:** Version bump only for package @spectrum-web-components/eslint-plugin

## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)

**Note:** Version bump only for package @spectrum-web-components/eslint-plugin
Expand Down
2 changes: 1 addition & 1 deletion linters/eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spectrum-web-components/eslint-plugin",
"version": "0.48.1",
"version": "0.49.0",
"private": true,
"main": "index.js"
}
4 changes: 4 additions & 0 deletions linters/stylelint-header/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)

**Note:** Version bump only for package stylelint-header

## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)

**Note:** Version bump only for package stylelint-header
Expand Down
2 changes: 1 addition & 1 deletion linters/stylelint-header/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stylelint-header",
"version": "0.48.1",
"version": "0.49.0",
"private": true,
"license": "Apache-2.0",
"author": "Adobe",
Expand Down
4 changes: 4 additions & 0 deletions packages/accordion/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)

**Note:** Version bump only for package @spectrum-web-components/accordion

## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)

**Note:** Version bump only for package @spectrum-web-components/accordion
Expand Down
12 changes: 6 additions & 6 deletions packages/accordion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spectrum-web-components/accordion",
"version": "0.48.1",
"version": "0.49.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -66,11 +66,11 @@
"lit-html"
],
"dependencies": {
"@spectrum-web-components/base": "^0.48.1",
"@spectrum-web-components/icon": "^0.48.1",
"@spectrum-web-components/icons-ui": "^0.48.1",
"@spectrum-web-components/reactive-controllers": "^0.48.1",
"@spectrum-web-components/shared": "^0.48.1"
"@spectrum-web-components/base": "^0.49.0",
"@spectrum-web-components/icon": "^0.49.0",
"@spectrum-web-components/icons-ui": "^0.49.0",
"@spectrum-web-components/reactive-controllers": "^0.49.0",
"@spectrum-web-components/shared": "^0.49.0"
},
"devDependencies": {
"@spectrum-css/accordion": "^5.1.2"
Expand Down
6 changes: 6 additions & 0 deletions packages/action-bar/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)

### Features

- add `static-color` to replace `static` ([#4808](https://github.com/adobe/spectrum-web-components/issues/4808)) ([43cf086](https://github.com/adobe/spectrum-web-components/commit/43cf0865d902346568c755650f53410c7788f2a1))

## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)

**Note:** Version bump only for package @spectrum-web-components/action-bar
Expand Down
12 changes: 6 additions & 6 deletions packages/action-bar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spectrum-web-components/action-bar",
"version": "0.48.1",
"version": "0.49.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -57,11 +57,11 @@
"lit-html"
],
"dependencies": {
"@spectrum-web-components/action-group": "^0.48.1",
"@spectrum-web-components/base": "^0.48.1",
"@spectrum-web-components/button": "^0.48.1",
"@spectrum-web-components/field-label": "^0.48.1",
"@spectrum-web-components/popover": "^0.48.1"
"@spectrum-web-components/action-group": "^0.49.0",
"@spectrum-web-components/base": "^0.49.0",
"@spectrum-web-components/button": "^0.49.0",
"@spectrum-web-components/field-label": "^0.49.0",
"@spectrum-web-components/popover": "^0.49.0"
},
"devDependencies": {
"@spectrum-css/actionbar": "^8.1.1"
Expand Down
6 changes: 6 additions & 0 deletions packages/action-button/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)

### Features

- add `static-color` to replace `static` ([#4808](https://github.com/adobe/spectrum-web-components/issues/4808)) ([43cf086](https://github.com/adobe/spectrum-web-components/commit/43cf0865d902346568c755650f53410c7788f2a1))

## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)

**Note:** Version bump only for package @spectrum-web-components/action-button
Expand Down
12 changes: 6 additions & 6 deletions packages/action-button/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spectrum-web-components/action-button",
"version": "0.48.1",
"version": "0.49.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -57,11 +57,11 @@
"lit-html"
],
"dependencies": {
"@spectrum-web-components/base": "^0.48.1",
"@spectrum-web-components/button": "^0.48.1",
"@spectrum-web-components/icon": "^0.48.1",
"@spectrum-web-components/icons-ui": "^0.48.1",
"@spectrum-web-components/shared": "^0.48.1"
"@spectrum-web-components/base": "^0.49.0",
"@spectrum-web-components/button": "^0.49.0",
"@spectrum-web-components/icon": "^0.49.0",
"@spectrum-web-components/icons-ui": "^0.49.0",
"@spectrum-web-components/shared": "^0.49.0"
},
"devDependencies": {
"@spectrum-css/actionbutton": "^6.1.1"
Expand Down
6 changes: 6 additions & 0 deletions packages/action-group/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)

### Features

- add `static-color` to replace `static` ([#4808](https://github.com/adobe/spectrum-web-components/issues/4808)) ([43cf086](https://github.com/adobe/spectrum-web-components/commit/43cf0865d902346568c755650f53410c7788f2a1))

## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)

**Note:** Version bump only for package @spectrum-web-components/action-group
Expand Down
10 changes: 5 additions & 5 deletions packages/action-group/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spectrum-web-components/action-group",
"version": "0.48.1",
"version": "0.49.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -58,10 +58,10 @@
],
"dependencies": {
"@lit-labs/observers": "^2.0.0",
"@spectrum-web-components/action-button": "^0.48.1",
"@spectrum-web-components/base": "^0.48.1",
"@spectrum-web-components/icons-workflow": "^0.48.1",
"@spectrum-web-components/reactive-controllers": "^0.48.1"
"@spectrum-web-components/action-button": "^0.49.0",
"@spectrum-web-components/base": "^0.49.0",
"@spectrum-web-components/icons-workflow": "^0.49.0",
"@spectrum-web-components/reactive-controllers": "^0.49.0"
},
"devDependencies": {
"@spectrum-css/actiongroup": "^5.1.0"
Expand Down
6 changes: 6 additions & 0 deletions packages/action-menu/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)

### Features

- add `static-color` to replace `static` ([#4808](https://github.com/adobe/spectrum-web-components/issues/4808)) ([43cf086](https://github.com/adobe/spectrum-web-components/commit/43cf0865d902346568c755650f53410c7788f2a1))

## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)

**Note:** Version bump only for package @spectrum-web-components/action-menu
Expand Down
14 changes: 7 additions & 7 deletions packages/action-menu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spectrum-web-components/action-menu",
"version": "0.48.1",
"version": "0.49.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -61,12 +61,12 @@
"lit-html"
],
"dependencies": {
"@spectrum-web-components/action-button": "^0.48.1",
"@spectrum-web-components/base": "^0.48.1",
"@spectrum-web-components/icon": "^0.48.1",
"@spectrum-web-components/icons-workflow": "^0.48.1",
"@spectrum-web-components/picker": "^0.48.1",
"@spectrum-web-components/shared": "^0.48.1"
"@spectrum-web-components/action-button": "^0.49.0",
"@spectrum-web-components/base": "^0.49.0",
"@spectrum-web-components/icon": "^0.49.0",
"@spectrum-web-components/icons-workflow": "^0.49.0",
"@spectrum-web-components/picker": "^0.49.0",
"@spectrum-web-components/shared": "^0.49.0"
},
"devDependencies": {
"@spectrum-css/actionmenu": "^6.1.1"
Expand Down
Loading

0 comments on commit d63c3c4

Please sign in to comment.