|
|
|
@ -29,25 +29,22 @@ jobs:
|
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
|
id: yarn-cache
|
|
|
|
|
with:
|
|
|
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
|
|
|
|
|
path: |
|
|
|
|
|
${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
|
|
yarn.lock
|
|
|
|
|
**/tsconfig.tsbuildinfo
|
|
|
|
|
key: yarn-${{ hashFiles('**/package.json') }}
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
|
- name: Config
|
|
|
|
|
yarn-
|
|
|
|
|
- name: Config And Install
|
|
|
|
|
run: |
|
|
|
|
|
[[ ! -z "${{secrets.NPM_TOKEN}}" ]] && echo "npmAuthToken: ${{secrets.NPM_TOKEN}}" >> .yarnrc.yml
|
|
|
|
|
git config --global user.name undefined
|
|
|
|
|
git config --global user.email i@undefined.moe
|
|
|
|
|
- name: Install
|
|
|
|
|
run: yarn
|
|
|
|
|
- name: Build
|
|
|
|
|
yarn
|
|
|
|
|
- name: Build And Lint
|
|
|
|
|
run: |
|
|
|
|
|
yarn build
|
|
|
|
|
yarn build:ui:production
|
|
|
|
|
- name: Lint
|
|
|
|
|
run: |
|
|
|
|
|
yarn lint:ci
|
|
|
|
|
yarn lint:ui:ci
|
|
|
|
|
parallel --tty -j+0 ::: lint:ci lint:ui:ci build build:ui:production
|
|
|
|
|
- name: Publish
|
|
|
|
|
if: ${{ github.event_name == 'push' }}
|
|
|
|
|
run: node build/publish.js
|
|
|
|
|