-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (48 loc) · 1.68 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on: pull_request
jobs:
local-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18.x"
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2
- run: pnpm install
- run: pnpm docs-sync validate-against-en
site-builds:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18.x"
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2
# Clone this PR, and setup the deps
- run: pnpm install
# Clone the TS website, basically:
# git clone https://github.com/ts-zh-docs/TypeScript-Website website
- name: Checkout tools repo
uses: actions/checkout@v2
with:
repository: ts-zh-docs/TypeScript-Website
path: website
# Both the ts-zh-docs/TypeScript-Website & 1 - don't really need to be there, but
# this migrates the translated docs into the website
- run: pnpm docs-sync pull ts-zh-docs/TypeScript-Website 1 --from-cwd . --to-cwd website
# Get dependencies for building the ebooks
- run: sudo apt-get update
- run: sudo apt install calibre
- run: pnpm install
env:
pnpm_CHECKSUM_BEHAVIOR: ignore
working-directory: ./website
# Verify the website build
- run: pnpm bootstrap
working-directory: ./website
- run: pnpm --filter typescriptlang-org build
working-directory: ./website
# # Verify the website build
# - run: pnpm test
# working-directory: ./website