Skip to content

Commit

Permalink
fix: update cn domain (#800)
Browse files Browse the repository at this point in the history
* fix: update cn domain

* fix(ci): upgrade node to 14

* chore: bump cli
  • Loading branch information
Miloas committed May 9, 2022
1 parent de1dc41 commit b7638bb
Show file tree
Hide file tree
Showing 7 changed files with 2,262 additions and 175 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,70 +2,70 @@ name: CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
linux:
name: Linux
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 12
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install Node.js modules
run: npm install
- name: Install Node.js modules
run: npm install

- name: Lint
run: npm run lint
- name: Lint
run: npm run lint

- name: VSCE Packge
run: npx vsce package
- name: VSCE Packge
run: npx vsce package

windows:
name: Windows
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 12
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install Node.js modules
run: npm install
- name: Install Node.js modules
run: npm install

- name: Lint
run: npm run lint
- name: Lint
run: npm run lint

- name: VSCE Packge
run: npx vsce package
- name: VSCE Packge
run: npx vsce package

darwin:
name: macOS
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 12
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install Node.js modules
run: npm install
- name: Install Node.js modules
run: npm install

- name: Lint
run: npm run lint
- name: Lint
run: npm run lint

- name: VSCE Packge
run: npx vsce package
- name: VSCE Packge
run: npx vsce package
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
- English Document | [中文文档](https://github.com/LeetCode-OpenSource/vscode-leetcode/blob/master/docs/README_zh-CN.md)

## ❗️ Attention ❗️- Workaround to login to LeetCode endpoint
> Note: If you are using `leetcode-cn.com`, you can just ignore this section.
> Note: If you are using `leetcode.cn`, you can just ignore this section.
Recently we observed that [the extension cannot login to leetcode.com endpoint anymore](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/478). The root cause of this issue is that leetcode.com changed its login mechanism and so far there is no ideal way to fix that issue.

Expand Down Expand Up @@ -63,7 +63,7 @@ Thanks for [@yihong0618](https://github.com/yihong0618) provided a workaround wh

- The supported endpoints are:
- **leetcode.com**
- **leetcode-cn.com**
- **leetcode.cn**

> Note: The accounts of different endpoints are **not** shared. Please make sure you are using the right endpoint. The extension will use `leetcode.com` by default.
Expand Down
4 changes: 2 additions & 2 deletions docs/README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
- [English Document](https://github.com/LeetCode-OpenSource/vscode-leetcode#requirements) | 中文文档

## ❗️ 注意 ❗️- 无法登录 LeetCode 节点的临时解决办法
> 注意:如果使用的是 `leetcode-cn.com` 账户,可以跳过此段落。
> 注意:如果使用的是 `leetcode.cn` 账户,可以跳过此段落。
近期我们发现插件出现了[无法登录 leetcode.com 节点的问题](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/478)。原因是因为近期 leetcode.com 改变了登录机制,目前我们暂时没有找到解决该问题的完美解决方案。

Expand Down Expand Up @@ -64,7 +64,7 @@

- 目前可切换的版本有:
- **leetcode.com**
- **leetcode-cn.com**
- **leetcode.cn**

> 注意:两种版本的 LeetCode 账户并**不通用**,请确保当前激活的版本是正确的。插件默认激活的是**英文版**
Expand Down
Loading

0 comments on commit b7638bb

Please sign in to comment.