Skip to content

Commit

Permalink
Merge branch 'main' into tool_move
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar committed Mar 5, 2024
2 parents f00c6c4 + 734c37c commit 9c2970a
Show file tree
Hide file tree
Showing 320 changed files with 14,579 additions and 6,279 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ module.exports = {
{
files: ["**/*.ts", "**/*.tsx"],
parser: "@typescript-eslint/parser",
extends: ["plugin:@typescript-eslint/recommended"],
extends: [
"plugin:@typescript-eslint/recommended",
//"plugin:@typescript-eslint/stylistic",
],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ ignoreRestSiblings: true },
Expand Down
94 changes: 69 additions & 25 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,89 @@
blog:
- "**/blog/**/*"
- changed-files:
- any-glob-to-any-file: "**/blog/**/*"

browser-compat:
- "**/browser-compatability-table/**/*"
- changed-files:
- any-glob-to-any-file: "**/browser-compatability-table/**/*"

macros:
- "kumascript/**/*"
- changed-files:
- any-glob-to-any-file: "kumascript/**/*"

cloud-function:
- "cloud-function/**/*"
- changed-files:
- any-glob-to-any-file: "cloud-function/**/*"

copy:
- "copy/**/*"
- changed-files:
- any-glob-to-any-file: "copy/**/*"

dependencies:
- "**/poetry.lock"
- "**/yarn.lock"
- changed-files:
- any-glob-to-any-file:
- "**/poetry.lock"
- "**/yarn.lock"

deployer:
- "deployer/**/*"
- changed-files:
- any-glob-to-any-file: "deployer/**/*"

filecheck:
- "filecheck/**/*"
- changed-files:
- any-glob-to-any-file: "filecheck/**/*"

flaw-system:
- "build/flaws/**/*"
- changed-files:
- any-glob-to-any-file: "build/flaws/**/*"

github-actions:
- ".github/workflows/**/*"
- changed-files:
- any-glob-to-any-file: ".github/workflows/**/*"

markdown:
- "markdown/**/*"
- changed-files:
- any-glob-to-any-file: "markdown/**/*"

metrics:
- "**/telemetry/**/*"
- changed-files:
- any-glob-to-any-file: "**/telemetry/**/*"

placement:
- "**/placement/**/*"
- "**/pong/**/*"
- changed-files:
- any-glob-to-any-file:
- "**/placement/**/*"
- "**/pong/**/*"

plus:
- "**/plus/**/*"
- "**/plus-docs/**/*"
- changed-files:
- any-glob-to-any-file:
- "**/plus/**/*"
- "**/plus-docs/**/*"

plus:ai-help:
- "**/ai-help/**/*"
- changed-files:
- any-glob-to-any-file: "**/ai-help/**/*"

plus:offline:
- "client/pwa/src/**/*"
- "client/src/offline-settings/**/*"
- changed-files:
- any-glob-to-any-file:
- "client/pwa/src/**/*"
- "client/src/offline-settings/**/*"

plus:playground:
- "**/playground/**/*"
- changed-files:
- any-glob-to-any-file: "**/playground/**/*"

plus:updates:
- "client/src/plus/updates/**/*"
- changed-files:
- any-glob-to-any-file: "client/src/plus/updates/**/*"

python:
- "**/*.py"
- changed-files:
- any-glob-to-any-file: "**/*.py"

redirects:
- "cloud-function/src/middlewares/redirect-*"
- "libs/fundamental-redirects/**/*"
- changed-files:
- any-glob-to-any-file:
- "cloud-function/src/middlewares/redirect-*"
- "libs/fundamental-redirects/**/*"
11 changes: 3 additions & 8 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: ".nvmrc"
cache: yarn

- name: Install all yarn packages
Expand All @@ -76,7 +76,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"

Expand Down Expand Up @@ -136,11 +136,6 @@ jobs:
echo "CONTENT_TRANSLATED_ROOT=$CONTENT_TRANSLATED_ROOT"
yarn build:prepare
# (July 15, 2021) This is a temporary solution. This should become an
# integrated part of 'build:prepare'.
# See https://github.com/mdn/yari/issues/4217
yarn tool popularities
yarn tool sync-translated-content
# Spread the work across 2 processes. Why 2? Because that's what you
Expand Down Expand Up @@ -205,7 +200,7 @@ jobs:
poetry run deployer search-index ../client/build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4.0.1
uses: aws-actions/configure-aws-credentials@v4.0.2
with:
aws-access-key-id: ${{ secrets.DEPLOYER_STAGE_AND_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DEPLOYER_STAGE_AND_DEV_AWS_SECRET_ACCESS_KEY }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/developing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: ".nvmrc"
cache: yarn

- name: Cache @vscode/ripgrep bin
uses: actions/cache@v4
with:
key: vscode-ripgrep-bin-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('yarn.lock') }}
path: node_modules/@vscode/ripgrep/bin/

- name: Install all yarn packages
run: yarn --frozen-lockfile
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4.3.0
- uses: actions/labeler@v5.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
21 changes: 9 additions & 12 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,8 @@ jobs:

steps:
- name: Release
uses: google-github-actions/release-please-action@v3
uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: node
package-name: release-please-action
changelog-types: |
[
{"type": "feat", "section": "Features", "hidden": false},
{"type": "fix", "section": "Bug Fixes", "hidden": false},
{"type": "enhance", "section": "Enhancements", "hidden": false},
{"type": "chore", "section": "Miscellaneous", "hidden": false}
]

- name: Checkout
uses: actions/checkout@v4
Expand All @@ -37,10 +27,17 @@ jobs:
uses: actions/setup-node@v4
if: steps.release.outputs.release_created
with:
node-version: 18
node-version-file: ".nvmrc"
cache: yarn
registry-url: "https://registry.npmjs.org"

- name: Cache @vscode/ripgrep bin
uses: actions/cache@v4
if: steps.release.outputs.release_created
with:
key: vscode-ripgrep-bin-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('yarn.lock') }}
path: node_modules/@vscode/ripgrep/bin/

- name: Install
if: steps.release.outputs.release_created
run: yarn --frozen-lockfile
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/npm-published-simulation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: ".nvmrc"
cache: "yarn"

- name: Cache @vscode/ripgrep bin
uses: actions/cache@v4
with:
key: vscode-ripgrep-bin-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('yarn.lock') }}
path: node_modules/@vscode/ripgrep/bin/

- name: Install all yarn packages
run: yarn --frozen-lockfile
env:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: ".nvmrc"
cache: yarn

- name: Cache @vscode/ripgrep bin
uses: actions/cache@v4
with:
key: vscode-ripgrep-bin-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('yarn.lock') }}
path: node_modules/@vscode/ripgrep/bin/

- name: Install all yarn packages
run: yarn --frozen-lockfile
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-deployer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ jobs:

- name: Install Python
id: setup-python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: deployer/.venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }}-${{ steps.setup-python.outputs.python-version }}

- name: Load cached .local
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.local
key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }}-${{ steps.setup-python.outputs.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: ".nvmrc"
cache: "yarn"

- name: Lint markdown files
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/pr-kumascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: ".nvmrc"
cache: yarn

- name: Cache @vscode/ripgrep bin
uses: actions/cache@v4
with:
key: vscode-ripgrep-bin-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('yarn.lock') }}
path: node_modules/@vscode/ripgrep/bin/

- name: Install all yarn packages
run: yarn --frozen-lockfile
env:
Expand Down
Loading

0 comments on commit 9c2970a

Please sign in to comment.