Skip to content

Commit 37d374a

Browse files
committed
Release plan
1 parent 77e14cc commit 37d374a

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,30 @@ jobs:
1818

1919
- uses: microsoft/playwright-github-action@v1
2020

21-
# Build v2
22-
- name: Build website v2
21+
# Builds the modules, and boostraps the other modules
22+
- name: Build website
2323
run: |
2424
yarn install
2525
yarn docs-sync pull microsoft/TypeScript-Website-localizations#main 1
2626
yarn bootstrap
2727
yarn build
28-
yarn build-site
29-
cp -r packages/typescriptlang-org/public site
3028
env:
3129
YARN_CHECKSUM_BEHAVIOR: ignore
3230

31+
# Update the site plan, scoped out on its own because it gets access to secrets
32+
- run: node packages/typescriptlang-org/scripts/getTypeScriptReleasePlan.js
33+
env:
34+
GITHUB_BOT_TOKEN: ${{ secrets.GITHUB_BOT_TOKEN }}
35+
TEAMS_WEB_BOT_INCOMING_URL: ${{ secrets.TEAMS_WEB_BOT_INCOMING_URL }}
36+
37+
# Builds the site
38+
- name: Makes the site
39+
run: |
40+
yarn build-site
41+
cp -r packages/typescriptlang-org/public site
42+
env:
43+
YARN_CHECKSUM_BEHAVIOR: ignore
44+
3345
# Deploy to the prod appservice
3446
- name: Deploy + Publish to AppService
3547
uses: peaceiris/[email protected]

packages/typescriptlang-org/scripts/getTypeScriptReleaseInfo.js renamed to packages/typescriptlang-org/scripts/getTypeScriptReleasePlan.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
// This script relies on getTypeScriptNPMVersions.js having been ran already
2-
// node packages/typescriptlang-org/scripts/getTypeScriptReleaseInfo.js
2+
// it will grab the latest TypeScript issue with info about the iteration plan
3+
// and turn that into structured data.
4+
5+
// node packages/typescriptlang-org/scripts/getTypeScriptReleasePlan.js
36

47
const Octokit = require("@octokit/rest")
58
const versionMeta = require("../src/lib/release-info.json")
69
const fetch = require("node-fetch")
710
const { format } = require("prettier")
8-
const { writeFileSync, existsSync } = require("fs")
9-
const { join, dirname } = require("path")
11+
const { writeFileSync } = require("fs")
12+
const { join } = require("path")
1013

1114
const token = process.env.GITHUB_BOT_TOKEN || process.env.GITHUB_TOKEN
1215
if (!token) throw new Error("No GitHub Token at process.env.GITHUB_BOT_TOKEN")
@@ -82,7 +85,7 @@ const go = async () => {
8285

8386
const results = {
8487
"_generated by":
85-
"node packages/typescriptlang-org/scripts/getTypeScriptReleaseInfo.js",
88+
"node packages/typescriptlang-org/scripts/getTypeScriptReleasePlan.js",
8689
upcoming_version: versionMeta.tags.next,
8790
iteration_plan_url: `https://github.com/microsoft/TypeScript/issues/${upcoming.number}`,
8891
last_release_date: toDate(lastRelease),

0 commit comments

Comments
 (0)