init translation of module function d ts #144
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |