feat: support CJK & ANS spacing (#12)

This commit is contained in:
Sivan 2020-02-21 01:49:22 +08:00
parent 898d2de3d8
commit aebe2137b0
25 changed files with 1420 additions and 335 deletions

View file

@ -9,13 +9,26 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@master
env:
EMAIL: sun.sivan@gmail.com
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BASE_BRANCH: master
BUILD_DIR: demo
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 10
- name: NPM Install and Test
run: |
npm install
npm run test
npm run build
- name: Publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: _site

31
.github/workflows/nodejs.yml vendored Normal file
View file

@ -0,0 +1,31 @@
---
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
run: |
npm ci
npm test
env:
CI: true
- name: npm build
run: npm run build
env:
CI: true