diff --git a/.github/workflows/browser-test.yml b/.github/workflows/browser-test.yml index 14a6efc8f3..3a69a28d29 100644 --- a/.github/workflows/browser-test.yml +++ b/.github/workflows/browser-test.yml @@ -54,13 +54,13 @@ jobs: run: npm ci --include=optional - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} - name: Cache lib/redirects/.redirects-cache_en_ja.json - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: lib/redirects/.redirects-cache_en_ja.json key: ${{ runner.os }}-redirects-cache-${{ hashFiles('.github/workflows/browser-test.yml') }} diff --git a/.github/workflows/check-all-english-links.yml b/.github/workflows/check-all-english-links.yml index 5fd19b641c..d57081f53a 100644 --- a/.github/workflows/check-all-english-links.yml +++ b/.github/workflows/check-all-english-links.yml @@ -35,7 +35,7 @@ jobs: - name: npm ci run: npm ci - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/crowdin-cleanup.yml b/.github/workflows/crowdin-cleanup.yml index 2ad2cedba7..d3752c6068 100644 --- a/.github/workflows/crowdin-cleanup.yml +++ b/.github/workflows/crowdin-cleanup.yml @@ -41,7 +41,7 @@ jobs: run: script/i18n/homogenize-frontmatter.js - name: Check in homogenized files - uses: EndBug/add-and-commit@2bdc0a61a03738a1d1bda24d566ad0dbe3083d87 + uses: EndBug/add-and-commit@8c12ff729a98cfbcd3fe38b49f55eceb98a5ec02 with: # The arguments for the `git add` command add: 'translations' diff --git a/.github/workflows/enterprise-dates.yml b/.github/workflows/enterprise-dates.yml index 158851106d..8b0dd68340 100644 --- a/.github/workflows/enterprise-dates.yml +++ b/.github/workflows/enterprise-dates.yml @@ -55,7 +55,7 @@ jobs: - name: Create pull request id: create-pull-request - uses: peter-evans/create-pull-request@7380612b49221684fefa025244f2ef4008ae50ad + uses: peter-evans/create-pull-request@dcd5fd746d53dd8de555c0f10bca6c35628be47a env: # Disable pre-commit hooks; they don't play nicely here HUSKY: '0' diff --git a/.github/workflows/enterprise-release-sync-search-index.yml b/.github/workflows/enterprise-release-sync-search-index.yml index 312c06af6b..ea9310b131 100644 --- a/.github/workflows/enterprise-release-sync-search-index.yml +++ b/.github/workflows/enterprise-release-sync-search-index.yml @@ -63,7 +63,7 @@ jobs: run: $GITHUB_WORKSPACE/.github/actions-scripts/enterprise-search-label.js - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/link-check-dotcom.yml b/.github/workflows/link-check-dotcom.yml index bd4beac60c..48abace97f 100644 --- a/.github/workflows/link-check-dotcom.yml +++ b/.github/workflows/link-check-dotcom.yml @@ -35,7 +35,7 @@ jobs: run: npm ci - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/link-check-ghae.yml b/.github/workflows/link-check-ghae.yml index bd64871be1..44d93d8471 100644 --- a/.github/workflows/link-check-ghae.yml +++ b/.github/workflows/link-check-ghae.yml @@ -35,7 +35,7 @@ jobs: run: npm ci - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/link-check-ghec.yml b/.github/workflows/link-check-ghec.yml index 4056e3c19a..01a77c398d 100644 --- a/.github/workflows/link-check-ghec.yml +++ b/.github/workflows/link-check-ghec.yml @@ -33,7 +33,7 @@ jobs: run: npm ci - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/link-check-ghes.yml b/.github/workflows/link-check-ghes.yml index 5bf0f84fce..2e0b46c4b5 100644 --- a/.github/workflows/link-check-ghes.yml +++ b/.github/workflows/link-check-ghes.yml @@ -35,7 +35,7 @@ jobs: run: npm ci - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/openapi-decorate.yml b/.github/workflows/openapi-decorate.yml index 1c01d3fac5..f909e6fbb6 100644 --- a/.github/workflows/openapi-decorate.yml +++ b/.github/workflows/openapi-decorate.yml @@ -46,7 +46,7 @@ jobs: run: script/rest/update-files.js --decorate-only - name: Check in the decorated files - uses: EndBug/add-and-commit@2bdc0a61a03738a1d1bda24d566ad0dbe3083d87 + uses: EndBug/add-and-commit@8c12ff729a98cfbcd3fe38b49f55eceb98a5ec02 with: # The arguments for the `git add` command add: 'lib/rest/static/decorated' diff --git a/.github/workflows/pa11y.yml b/.github/workflows/pa11y.yml index 5313c7b677..cc2c61ac8c 100644 --- a/.github/workflows/pa11y.yml +++ b/.github/workflows/pa11y.yml @@ -30,7 +30,7 @@ jobs: run: npm ci --include=optional - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/prod-build-deploy.yml b/.github/workflows/prod-build-deploy.yml index e8689c3e75..9be3302f8b 100644 --- a/.github/workflows/prod-build-deploy.yml +++ b/.github/workflows/prod-build-deploy.yml @@ -55,7 +55,7 @@ jobs: GIT_BRANCH: main - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/remove-unused-assets.yml b/.github/workflows/remove-unused-assets.yml index 261d8a6114..39c70ea3a7 100644 --- a/.github/workflows/remove-unused-assets.yml +++ b/.github/workflows/remove-unused-assets.yml @@ -44,7 +44,7 @@ jobs: - name: Remove script results file run: rm ./results.md - name: Create pull request - uses: peter-evans/create-pull-request@7380612b49221684fefa025244f2ef4008ae50ad + uses: peter-evans/create-pull-request@dcd5fd746d53dd8de555c0f10bca6c35628be47a env: # Disable pre-commit hooks; they don't play nicely here HUSKY: '0' diff --git a/.github/workflows/staging-build-and-deploy-pr.yml b/.github/workflows/staging-build-and-deploy-pr.yml index 84090a206a..ed2b58a1e4 100644 --- a/.github/workflows/staging-build-and-deploy-pr.yml +++ b/.github/workflows/staging-build-and-deploy-pr.yml @@ -64,7 +64,7 @@ jobs: run: npm ci - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/staging-build-pr.yml b/.github/workflows/staging-build-pr.yml index dbfa04c8fb..75c9c27844 100644 --- a/.github/workflows/staging-build-pr.yml +++ b/.github/workflows/staging-build-pr.yml @@ -82,7 +82,7 @@ jobs: run: npm ci - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} @@ -129,7 +129,7 @@ jobs: # We are not willing to trust the rest (e.g. script/) for the remainder # of the deployment process. - name: Upload build artifact - uses: actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074 + uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 with: name: pr_build path: app.tar diff --git a/.github/workflows/sync-search-indices.yml b/.github/workflows/sync-search-indices.yml index 88c2de8133..b02519c3f6 100644 --- a/.github/workflows/sync-search-indices.yml +++ b/.github/workflows/sync-search-indices.yml @@ -65,7 +65,7 @@ jobs: run: npm ci - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/sync-search-pr.yml b/.github/workflows/sync-search-pr.yml index 16bfa7c16e..346f3e5fce 100644 --- a/.github/workflows/sync-search-pr.yml +++ b/.github/workflows/sync-search-pr.yml @@ -38,7 +38,7 @@ jobs: run: npm ci - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index 52b671b8af..db21f22d85 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -56,7 +56,7 @@ jobs: run: npm ci - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bd4b6c6077..21872d29c0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -82,7 +82,7 @@ jobs: GIT_BRANCH: ${{ github.head_ref || github.ref }} - name: Cache nextjs build - uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: .next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }} diff --git a/.github/workflows/update-graphql-files.yml b/.github/workflows/update-graphql-files.yml index 9d984311e1..644a72c345 100644 --- a/.github/workflows/update-graphql-files.yml +++ b/.github/workflows/update-graphql-files.yml @@ -48,7 +48,7 @@ jobs: script/graphql/update-files.js - name: Create pull request id: create-pull-request - uses: peter-evans/create-pull-request@7380612b49221684fefa025244f2ef4008ae50ad + uses: peter-evans/create-pull-request@dcd5fd746d53dd8de555c0f10bca6c35628be47a env: # Disable pre-commit hooks; they don't play nicely here HUSKY: '0' diff --git a/Dockerfile b/Dockerfile index b99cc6fa16..a6a4992160 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ # -------------------------------------------------------------------------------- # BASE IMAGE # -------------------------------------------------------------------------------- -FROM node:16.2.0-alpine as base +FROM node:16-alpine as base RUN apk add --no-cache make g++ git @@ -22,6 +22,10 @@ COPY package*.json ./ RUN npm ci +# This the appropriate necessary extra for node:16-alpine +# Other options are https://www.npmjs.com/search?q=%40next%2Fswc +RUN npm i @next/swc-linux-x64-musl --no-save + # --------------- # PROD DEPS @@ -54,7 +58,7 @@ RUN npm run build # MAIN IMAGE # -------------------------------------------------------------------------------- -FROM node:16.2.0-alpine as production +FROM node:16-alpine as production # Let's make our home WORKDIR /usr/src/docs diff --git a/components/Search.module.scss b/components/Search.module.scss index 4ccc25ca94..b88b6c8161 100644 --- a/components/Search.module.scss +++ b/components/Search.module.scss @@ -51,3 +51,7 @@ .selectWording { margin: 0.64rem 0.5rem 0 0; } + +.versionSearchContainer { + overflow: hidden; +} diff --git a/components/Search.tsx b/components/Search.tsx index d99a60e4fe..3f6d0adc70 100644 --- a/components/Search.tsx +++ b/components/Search.tsx @@ -206,7 +206,7 @@ export function Search({ ) const SearchInput = ( -