-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into assertive-help-text
- Loading branch information
Showing
359 changed files
with
9,843 additions
and
2,867 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Code coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
code-coverage-report: | ||
name: Generate and upload coverage report | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
cache: 'yarn' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Install Playwright | ||
run: yarn playwright install | ||
|
||
- name: Run unit tests with coverage | ||
run: yarn test:ci --config web-test-runner.config.ci-chromium.js --group no-memory-ci --coverage | ||
continue-on-error: true | ||
|
||
- name: Upload coverage to Coveralls | ||
uses: coverallsapp/github-action@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "0.46.0", | ||
"version": "0.49.0", | ||
"granularPathspec": false, | ||
"npmClient": "yarn", | ||
"command": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@spectrum-web-components/eslint-plugin", | ||
"version": "0.46.0", | ||
"version": "0.49.0", | ||
"private": true, | ||
"main": "index.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.