Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0daa298
Big dep update (#3509)
jakebailey Feb 18, 2026
49a57e1
Version Packages (#3510)
typescript-bot Feb 18, 2026
8de0c08
Remove unused gatsby plugins (#3511)
jakebailey Feb 18, 2026
2072484
Fix Ctrl+[arrow keys] in Firefox. (#3505)
DanielRosenwasser Feb 18, 2026
6a12128
Version Packages (#3512)
typescript-bot Feb 18, 2026
472056a
Update deps (#3517)
jakebailey Mar 2, 2026
1421299
Fix up glossary scripts. (#3518)
DanielRosenwasser Mar 2, 2026
8fd7177
Add GH CLI to devcontainer, use the `customizations` field, turn on d…
DanielRosenwasser Mar 2, 2026
3cff96e
Bump the github-actions group across 1 directory with 3 updates (#3520)
dependabot[bot] Mar 2, 2026
57e19fd
Bump the github-actions group with 2 updates (#3522)
dependabot[bot] Mar 6, 2026
9953d5b
fix(sandbox): getInitialCode should not use URL hash without full pre…
Josh-Cena Mar 10, 2026
49d7c6b
Version Packages (#3524)
typescript-bot Mar 10, 2026
32433bc
Bump the github-actions group with 2 updates (#3525)
dependabot[bot] Mar 13, 2026
d21b315
Accessibility bug fix 2737338 (#3529)
navya9singh Mar 18, 2026
673b339
Update for TS 6.0 (#3534)
jakebailey Mar 25, 2026
5d0a1d0
Accessibility bug fix 2737380 (#3530)
navya9singh Mar 25, 2026
a42ede9
Accessibility bug fix 2737382 (#3528)
navya9singh Mar 25, 2026
290290d
Accessibility bug fix 2737374 (#3531)
navya9singh Mar 26, 2026
76feafd
Accessibility bug fix 2737342 (#3532)
navya9singh Mar 26, 2026
2207cc6
Bump the github-actions group across 1 directory with 4 updates (#3535)
dependabot[bot] Mar 27, 2026
119f931
Add TS 6.0 blog now that it's finalized (#3538)
jakebailey Mar 31, 2026
ce869b7
Create @typescript/typescript6 (#3545)
jakebailey Apr 16, 2026
9e50f33
Version Packages (#3548)
typescript-bot Apr 16, 2026
3a52c3f
Add publishConfig to typescript6 package (#3549)
jakebailey Apr 16, 2026
b55baf6
Bump the github-actions group across 1 directory with 6 updates (#3556)
dependabot[bot] Apr 24, 2026
b35fd22
Add tsserverlibrary shim to @typescript/typescript6 (#3559)
jakebailey Apr 28, 2026
e89bda9
Version Packages (#3560)
typescript-bot Apr 28, 2026
f3cefe7
docs(handbook): fix heading level for "Truthiness narrowing" (#3580)
yezhonghu0503 Jun 5, 2026
082b4c5
Switch from bot PAT to GitHub App token via Azure Key Vault (#3582)
jakebailey Jun 8, 2026
091aec8
Bump the github-actions group across 1 directory with 4 updates (#3579)
dependabot[bot] Jun 8, 2026
785b11a
Update git identity from typescript-bot to typescript-automation[bot]…
jakebailey Jun 8, 2026
9ff8122
merging all conflicts
SyncDocsBot Jun 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
"name": "TypeScript Website codespace",
"dockerFile": "Dockerfile",

"features": {
"ghcr.io/devcontainers/features/github-cli": "latest",
},

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
}
}
},

"forwardPorts": [8000],
Expand Down
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
groups:
github-actions:
patterns:
- '*'

- package-ecosystem: 'devcontainers'
directory: '/'
schedule:
interval: weekly

24 changes: 9 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "18.x"
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
node-version: "20.x"
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8

- run: pnpm install

Expand All @@ -41,7 +41,7 @@ jobs:
# Verify it compiles
- run: pnpm build-site

- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest'
with:
name: site
Expand All @@ -50,12 +50,6 @@ jobs:
# Run all the package's tests
- run: pnpm test

# danger for PR builds
- if: github.event_name == 'pull_request' && github.event.pull_request.base.repo.id == github.event.pull_request.head.repo.id && matrix.os == 'ubuntu-latest'
run: "pnpm danger ci"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: |
git add .
if ! git diff --staged --exit-code --quiet; then
Expand All @@ -71,7 +65,7 @@ jobs:

- name: Upload diff artifact
if: ${{ failure() && steps.check-diff.conclusion == 'failure' }}
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: missing.patch
path: missing.patch
Expand All @@ -80,13 +74,13 @@ jobs:
name: changesets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 'lts/*'
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8

- run: pnpm install

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
config-file: ./.github/codeql/codeql-configuration.yml
# Override language selection by uncommenting this and choosing your languages
Expand All @@ -54,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below).
- name: Autobuild
uses: github/codeql-action/autobuild@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
uses: github/codeql-action/autobuild@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -68,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
6 changes: 3 additions & 3 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
steps:
- name: Get PR/workflow run info
id: get-info
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
console.dir(context, { depth: null });
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:

- name: Download site build from PR
if: ${{ steps.get-info.outputs.result != 'null' }}
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: site
path: site
Expand All @@ -155,7 +155,7 @@ jobs:

- name: Comment on PR
if: ${{ steps.get-info.outputs.result != 'null' }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
PR_NUMBER: ${{ fromJson(steps.get-info.outputs.result).pr }}
SITE_URL: ${{ steps.deploy.outputs.static_web_app_url }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/deploy-prod-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:
if: github.repository == 'microsoft/TypeScript-Website'

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Fetch the full history, to build attribution.json
fetch-depth: 0
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "18.x"
node-version: "20.x"

- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8

# Builds the modules, and boostraps the other modules
- name: Build website
Expand All @@ -52,10 +52,10 @@ jobs:
cp -r packages/typescriptlang-org/public site

- name: Setup Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0

- name: Upload artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v3
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v3
with:
path: './site'

Expand All @@ -69,4 +69,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
6 changes: 3 additions & 3 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
contents: write

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- run: |
if [[ $(git log --format="%H" --since "50 days" | head -c1 | wc -c) == 0 ]]; then
git config user.email "typescriptbot@microsoft.com"
git config user.name "TypeScript Bot"
git config user.email "290192711+typescript-automation[bot]@users.noreply.github.com"
git config user.name "typescript-automation[bot]"
git commit --allow-empty -m "Automated commit to keep GitHub Actions active"
git push
fi
48 changes: 38 additions & 10 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,65 @@ on:
workflow_dispatch:

permissions:
contents: write
pull-requests: write
contents: read
id-token: write

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
build:
runs-on: ubuntu-latest
environment:
name: azure
deployment: false
if: github.repository == 'microsoft/TypeScript-Website'

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
filter: blob:none
token: ${{ secrets.TS_BOT_TOKEN }}
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "18.x"
node-version: "20.x"
registry-url: "https://registry.npmjs.org/"
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8

- name: Prepare website v2
run: |
pnpm install
pnpm bootstrap
pnpm build

- uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
- uses: azure/login@532459ea530d8321f2fb9bb10d1e0bcf23869a43 # v3.0.0
with:
client-id: ${{ vars.AZURE_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}

- name: Create GitHub App token
id: app-token
uses: microsoft/create-github-app-token-via-key-vault@5ba0d436e9c3cac52feff4d1f2f66f9698ce4a2d # v1
with:
client-id: ${{ vars.TYPESCRIPT_AUTOMATION_GITHUB_APP_CLIENT_ID }}
key-id: ${{ vars.TYPESCRIPT_AUTOMATION_GITHUB_APP_KEY_ID }}
owner: microsoft
repositories: TypeScript-Website
permission-contents: write
permission-pull-requests: write
- name: Configure git for GitHub App token
shell: bash
env:
GITHUB_APP_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
set -euo pipefail
basic_auth="$(node -e 'process.stdout.write(Buffer.from("x-access-token:" + process.env.GITHUB_APP_TOKEN).toString("base64"))')"
echo "::add-mask::$basic_auth"
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ${basic_auth}"
- uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
with:
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.TS_BOT_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

目前为了保持稳定,我们仍然采取原有的本地化方式进行构建,即在本仓库触发 Vercel 的构建。而在 [ts-zh-docs/TypeScript-zh-Website](https://github.com/ts-zh-docs/TypeScript-zh-Website) 进行更新。一切有关翻译的讨论都将移至那个仓库,本仓库只负责构建工作。**中文文档的线上地址请访问[这里](https://www.tslang.com.cn)**。

<<<<<<< HEAD
本地开发环境构建步骤:
=======
This repo uses pnpm workspaces with node 20+, and [watchman](https://facebook.github.io/watchman/docs/install.html). (Windows users can install [watchman via chocolatey](https://chocolatey.org/packages/watchman))
>>>>>>> 785b11a8d8d87d15b641ccb46ec74e6fc2b70f54

1. 使用 Node 18.x 版本。
2. 使用 `pnpm` 命令安装依赖。
Expand Down
9 changes: 0 additions & 9 deletions dangerfile.ts

This file was deleted.

Loading
Loading