Skip to content

Commit

Permalink
Merge branch 'main' into try/element-library-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Mar 12, 2024
2 parents 431c526 + e146a96 commit a1d6af1
Show file tree
Hide file tree
Showing 134 changed files with 5,761 additions and 4,740 deletions.
1 change: 0 additions & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
last 2 Chrome versions
last 2 Firefox versions
last 2 Safari versions
Safari 15.3 # polyfill support for structuredClone #11799
last 2 iOS versions
last 2 Edge versions
last 2 Opera versions
5 changes: 3 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,10 @@
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"EXPERIMENTAL_useProjectService": true,
"warnOnUnsupportedTypeScriptVersion": false,
"project": [
"./packages/*/tsconfig.json"
".tsconfig.json"
]
},
"rules": {
Expand Down Expand Up @@ -648,7 +649,7 @@
],
"extends": [
"plugin:node/recommended",
"plugin:security/recommended"
"plugin:security/recommended-legacy"
],
"plugins": [
"security"
Expand Down
1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ bf0cb0583153e71fcceaee044550ad511b94d470
fe28ba3ced458b23fc53574bb25d6d3fbe6a4b3f
e6594d05a23cbd026f51668adc652fda959febbb
f459efbc4a2c9546a0ca2fed1301e4f222fa2340
72c8fa5e2419876f20507240314d0acbb825059d
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ updates:
open-pull-requests-limit: 10
labels:
- Dependencies
groups:
github-actions:
patterns:
- '*'

- package-ecosystem: npm
directory: '/'
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
with:
disable-file-monitoring: true
egress-policy: block
Expand All @@ -104,7 +104,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version-file: '.nvmrc'
cache: npm
Expand All @@ -129,21 +129,21 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version-file: '.nvmrc'
cache: npm

- name: Setup PHP
uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35
with:
php-version: '8.0'
coverage: none
Expand All @@ -155,14 +155,14 @@ jobs:
PUPPETEER_SKIP_DOWNLOAD: true

- name: Install PHP dependencies
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6
uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a
with:
composer-options: '--prefer-dist --no-progress --no-interaction'

- name: Setup Bun
uses: oven-sh/setup-bun@830e319e28724678162e88b9145a9b43f22f1a8e
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
with:
bun-version: '0.5.9'
bun-version: latest

- name: Build plugin
run: |
Expand All @@ -184,12 +184,12 @@ jobs:
# Upload ZIP file to GCS for use in QA environment.

- name: Authenticate
uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033
uses: google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}

- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@e30db14379863a8c79331b04a9969f4c1e225e0b
uses: google-github-actions/setup-gcloud@98ddc00a17442e89a24bbf282954a3b65ce6d200
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}

Expand All @@ -202,7 +202,7 @@ jobs:

- name: Check if a comment was already made
id: find-comment
uses: peter-evans/find-comment@a54c31d7fa095754bfef525c0c8e5e5674c4b4b1
uses: peter-evans/find-comment@d5fe37641ad8451bdd80312415672ba26c86575e
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: googleforcreators-bot
Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
- name: Create or update comment on PR with links to plugin builds
uses: peter-evans/create-or-update-comment@23ff15729ef2fc348714a3bb66d2f655ca9066f2
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
with:
issue-number: ${{ github.event.pull_request.number }}
comment-id: ${{ steps.find-comment.outputs.comment-id }}
Expand All @@ -248,7 +248,7 @@ jobs:
# Deploy to staging site if on main branch.

- name: Setup SSH Keys and known_hosts
uses: webfactory/ssh-agent@d4b9b8ff72958532804b70bbe600ad43b36d5f2e
uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387
with:
ssh-private-key: ${{ secrets.PANTHEON_DEPLOY_KEY }}
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cleanup-pr-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
with:
disable-file-monitoring: true
disable-sudo: true
Expand All @@ -34,12 +34,12 @@ jobs:
raw.githubusercontent.com:443
- name: Authenticate
uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033
uses: google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}

- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@e30db14379863a8c79331b04a9969f4c1e225e0b
uses: google-github-actions/setup-gcloud@98ddc00a17442e89a24bbf282954a3b65ce6d200
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version-file: '.nvmrc'
cache: npm
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint-css-js-md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
timeout-minutes: 20
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
with:
disable-sudo: true
disable-file-monitoring: true
Expand All @@ -77,7 +77,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version-file: '.nvmrc'
cache: npm
Expand All @@ -88,9 +88,9 @@ jobs:
PUPPETEER_SKIP_DOWNLOAD: true

- name: Setup Bun
uses: oven-sh/setup-bun@830e319e28724678162e88b9145a9b43f22f1a8e
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
with:
bun-version: '0.5.9'
bun-version: latest

- name: Markdown Lint
run: npm run lint:md
Expand Down
31 changes: 12 additions & 19 deletions .github/workflows/lint-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,38 +42,31 @@ jobs:
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Install WP-CLI
run: |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
mkdir -p bin
mv wp-cli.phar bin/wp
echo "${PWD}/bin" >> $GITHUB_PATH
- name: WP-CLI Info
run: wp cli info
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: latest
coverage: none
tools: wp-cli

- name: Install latest version of i18n-command
run: wp package install wp-cli/i18n-command:dev-main

- name: List packages
run: wp package list

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version-file: '.nvmrc'
cache: npm

- name: Setup PHP
uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35
with:
php-version: '8.0'
coverage: none
Expand All @@ -86,14 +79,14 @@ jobs:
PUPPETEER_SKIP_DOWNLOAD: true

- name: Install PHP dependencies
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6
uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a
with:
composer-options: '--prefer-dist --no-progress --no-interaction'

- name: Setup Bun
uses: oven-sh/setup-bun@830e319e28724678162e88b9145a9b43f22f1a8e
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
with:
bun-version: '0.5.9'
bun-version: latest

- name: Build plugin
run: bun run build:js
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
with:
disable-file-monitoring: true
egress-policy: block
Expand All @@ -58,7 +58,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Setup PHP
uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35
with:
php-version: '8.0'
coverage: none
Expand All @@ -68,7 +68,7 @@ jobs:
run: composer --no-interaction validate --no-check-all

- name: Install PHP dependencies
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6
uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a
with:
composer-options: '--prefer-dist --no-progress --no-interaction'

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version-file: '.nvmrc'
cache: npm
Expand All @@ -48,9 +48,9 @@ jobs:
PUPPETEER_SKIP_DOWNLOAD: true

- name: Setup Bun
uses: oven-sh/setup-bun@830e319e28724678162e88b9145a9b43f22f1a8e
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
with:
bun-version: '0.5.9'
bun-version: latest

- name: Bundle packages
run: bun run workflow:bundle-packages
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
needs: [dry-run]
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -113,7 +113,7 @@ jobs:

# See go/npm-publish
- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version-file: '.nvmrc'
cache: npm
Expand All @@ -126,9 +126,9 @@ jobs:
PUPPETEER_SKIP_DOWNLOAD: true

- name: Setup Bun
uses: oven-sh/setup-bun@830e319e28724678162e88b9145a9b43f22f1a8e
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
with:
bun-version: '0.5.9'
bun-version: latest

- name: Bundle packages
run: bun run workflow:bundle-packages
Expand Down
Loading

0 comments on commit a1d6af1

Please sign in to comment.